@Generated(value="software.amazon.awssdk:codegen") public final class NetworkResource extends Object implements SdkPojo, Serializable, ToCopyableBuilder<NetworkResource.Builder,NetworkResource>
Describes a network resource.
| Modifier and Type | Class and Description |
|---|---|
static interface |
NetworkResource.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
accountId()
The Amazon Web Services account ID.
|
String |
awsRegion()
The Amazon Web Services Region.
|
static NetworkResource.Builder |
builder() |
String |
coreNetworkId()
The ID of a core network.
|
String |
definition()
Information about the resource, in JSON format.
|
Instant |
definitionTimestamp()
The time that the resource definition was retrieved.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasMetadata()
For responses, this returns true if the service returned a value for the Metadata property.
|
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
Map<String,String> |
metadata()
The resource metadata.
|
String |
registeredGatewayArn()
The ARN of the gateway.
|
String |
resourceArn()
The ARN of the resource.
|
String |
resourceId()
The ID of the resource.
|
String |
resourceType()
The resource type.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends NetworkResource.Builder> |
serializableBuilderClass() |
List<Tag> |
tags()
The tags.
|
NetworkResource.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String registeredGatewayArn()
The ARN of the gateway.
public final String coreNetworkId()
The ID of a core network.
public final String awsRegion()
The Amazon Web Services Region.
public final String accountId()
The Amazon Web Services account ID.
public final String resourceType()
The resource type.
The following are the supported resource types for Direct Connect:
dxcon
dx-gateway
dx-vif
The following are the supported resource types for Network Manager:
connection
device
link
site
The following are the supported resource types for Amazon VPC:
customer-gateway
transit-gateway
transit-gateway-attachment
transit-gateway-connect-peer
transit-gateway-route-table
vpn-connection
The following are the supported resource types for Direct Connect:
dxcon
dx-gateway
dx-vif
The following are the supported resource types for Network Manager:
connection
device
link
site
The following are the supported resource types for Amazon VPC:
customer-gateway
transit-gateway
transit-gateway-attachment
transit-gateway-connect-peer
transit-gateway-route-table
vpn-connection
public final String resourceId()
The ID of the resource.
public final String resourceArn()
The ARN of the resource.
public final String definition()
Information about the resource, in JSON format. Network Manager gets this information by describing the resource using its Describe API call.
public final Instant definitionTimestamp()
The time that the resource definition was retrieved.
public final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<Tag> tags()
The tags.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
public final boolean hasMetadata()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final Map<String,String> metadata()
The resource metadata.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasMetadata() method.
public NetworkResource.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<NetworkResource.Builder,NetworkResource>public static NetworkResource.Builder builder()
public static Class<? extends NetworkResource.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.