@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NetworkResource extends Object implements Serializable, Cloneable, StructuredPojo
Describes a network resource.
Constructor and Description |
---|
NetworkResource() |
Modifier and Type | Method and Description |
---|---|
NetworkResource |
addMetadataEntry(String key,
String value)
Add a single Metadata entry
|
NetworkResource |
clearMetadataEntries()
Removes all the entries added into Metadata.
|
NetworkResource |
clone() |
boolean |
equals(Object obj) |
String |
getAccountId()
The Amazon Web Services account ID.
|
String |
getAwsRegion()
The Amazon Web Services Region.
|
String |
getCoreNetworkId()
a core network ID.
|
String |
getDefinition()
Information about the resource, in JSON format.
|
Date |
getDefinitionTimestamp()
The time that the resource definition was retrieved.
|
Map<String,String> |
getMetadata()
The resource metadata.
|
String |
getRegisteredGatewayArn()
The ARN of the gateway.
|
String |
getResourceArn()
The ARN of the resource.
|
String |
getResourceId()
The ID of the resource.
|
String |
getResourceType()
The resource type.
|
List<Tag> |
getTags()
The tags.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccountId(String accountId)
The Amazon Web Services account ID.
|
void |
setAwsRegion(String awsRegion)
The Amazon Web Services Region.
|
void |
setCoreNetworkId(String coreNetworkId)
a core network ID.
|
void |
setDefinition(String definition)
Information about the resource, in JSON format.
|
void |
setDefinitionTimestamp(Date definitionTimestamp)
The time that the resource definition was retrieved.
|
void |
setMetadata(Map<String,String> metadata)
The resource metadata.
|
void |
setRegisteredGatewayArn(String registeredGatewayArn)
The ARN of the gateway.
|
void |
setResourceArn(String resourceArn)
The ARN of the resource.
|
void |
setResourceId(String resourceId)
The ID of the resource.
|
void |
setResourceType(String resourceType)
The resource type.
|
void |
setTags(Collection<Tag> tags)
The tags.
|
String |
toString()
Returns a string representation of this object.
|
NetworkResource |
withAccountId(String accountId)
The Amazon Web Services account ID.
|
NetworkResource |
withAwsRegion(String awsRegion)
The Amazon Web Services Region.
|
NetworkResource |
withCoreNetworkId(String coreNetworkId)
a core network ID.
|
NetworkResource |
withDefinition(String definition)
Information about the resource, in JSON format.
|
NetworkResource |
withDefinitionTimestamp(Date definitionTimestamp)
The time that the resource definition was retrieved.
|
NetworkResource |
withMetadata(Map<String,String> metadata)
The resource metadata.
|
NetworkResource |
withRegisteredGatewayArn(String registeredGatewayArn)
The ARN of the gateway.
|
NetworkResource |
withResourceArn(String resourceArn)
The ARN of the resource.
|
NetworkResource |
withResourceId(String resourceId)
The ID of the resource.
|
NetworkResource |
withResourceType(String resourceType)
The resource type.
|
NetworkResource |
withTags(Collection<Tag> tags)
The tags.
|
NetworkResource |
withTags(Tag... tags)
The tags.
|
public void setRegisteredGatewayArn(String registeredGatewayArn)
The ARN of the gateway.
registeredGatewayArn
- The ARN of the gateway.public String getRegisteredGatewayArn()
The ARN of the gateway.
public NetworkResource withRegisteredGatewayArn(String registeredGatewayArn)
The ARN of the gateway.
registeredGatewayArn
- The ARN of the gateway.public void setCoreNetworkId(String coreNetworkId)
a core network ID.
coreNetworkId
- a core network ID.public String getCoreNetworkId()
a core network ID.
public NetworkResource withCoreNetworkId(String coreNetworkId)
a core network ID.
coreNetworkId
- a core network ID.public void setAwsRegion(String awsRegion)
The Amazon Web Services Region.
awsRegion
- The Amazon Web Services Region.public String getAwsRegion()
The Amazon Web Services Region.
public NetworkResource withAwsRegion(String awsRegion)
The Amazon Web Services Region.
awsRegion
- The Amazon Web Services Region.public void setAccountId(String accountId)
The Amazon Web Services account ID.
accountId
- The Amazon Web Services account ID.public String getAccountId()
The Amazon Web Services account ID.
public NetworkResource withAccountId(String accountId)
The Amazon Web Services account ID.
accountId
- The Amazon Web Services account ID.public void setResourceType(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
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
public String getResourceType()
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 NetworkResource withResourceType(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
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
public void setResourceId(String resourceId)
The ID of the resource.
resourceId
- The ID of the resource.public String getResourceId()
The ID of the resource.
public NetworkResource withResourceId(String resourceId)
The ID of the resource.
resourceId
- The ID of the resource.public void setResourceArn(String resourceArn)
The ARN of the resource.
resourceArn
- The ARN of the resource.public String getResourceArn()
The ARN of the resource.
public NetworkResource withResourceArn(String resourceArn)
The ARN of the resource.
resourceArn
- The ARN of the resource.public void setDefinition(String definition)
Information about the resource, in JSON format. Network Manager gets this information by describing the resource using its Describe API call.
definition
- Information about the resource, in JSON format. Network Manager gets this information by describing the
resource using its Describe API call.public String getDefinition()
Information about the resource, in JSON format. Network Manager gets this information by describing the resource using its Describe API call.
public NetworkResource withDefinition(String definition)
Information about the resource, in JSON format. Network Manager gets this information by describing the resource using its Describe API call.
definition
- Information about the resource, in JSON format. Network Manager gets this information by describing the
resource using its Describe API call.public void setDefinitionTimestamp(Date definitionTimestamp)
The time that the resource definition was retrieved.
definitionTimestamp
- The time that the resource definition was retrieved.public Date getDefinitionTimestamp()
The time that the resource definition was retrieved.
public NetworkResource withDefinitionTimestamp(Date definitionTimestamp)
The time that the resource definition was retrieved.
definitionTimestamp
- The time that the resource definition was retrieved.public void setTags(Collection<Tag> tags)
The tags.
tags
- The tags.public NetworkResource withTags(Tag... tags)
The tags.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags.public NetworkResource withTags(Collection<Tag> tags)
The tags.
tags
- The tags.public Map<String,String> getMetadata()
The resource metadata.
public void setMetadata(Map<String,String> metadata)
The resource metadata.
metadata
- The resource metadata.public NetworkResource withMetadata(Map<String,String> metadata)
The resource metadata.
metadata
- The resource metadata.public NetworkResource addMetadataEntry(String key, String value)
public NetworkResource clearMetadataEntries()
public String toString()
toString
in class Object
Object.toString()
public NetworkResource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.