Interface NetworkResource.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<NetworkResource.Builder,NetworkResource>,SdkBuilder<NetworkResource.Builder,NetworkResource>,SdkPojo
- Enclosing class:
- NetworkResource
public static interface NetworkResource.Builder extends SdkPojo, CopyableBuilder<NetworkResource.Builder,NetworkResource>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NetworkResource.BuilderaccountId(String accountId)The Amazon Web Services account ID.NetworkResource.BuilderawsRegion(String awsRegion)The Amazon Web Services Region.NetworkResource.BuildercoreNetworkId(String coreNetworkId)The ID of a core network.NetworkResource.Builderdefinition(String definition)Information about the resource, in JSON format.NetworkResource.BuilderdefinitionTimestamp(Instant definitionTimestamp)The time that the resource definition was retrieved.NetworkResource.Buildermetadata(Map<String,String> metadata)The resource metadata.NetworkResource.BuilderregisteredGatewayArn(String registeredGatewayArn)The ARN of the gateway.NetworkResource.BuilderresourceArn(String resourceArn)The ARN of the resource.NetworkResource.BuilderresourceId(String resourceId)The ID of the resource.NetworkResource.BuilderresourceType(String resourceType)The resource type.NetworkResource.Buildertags(Collection<Tag> tags)The tags.NetworkResource.Buildertags(Consumer<Tag.Builder>... tags)The tags.NetworkResource.Buildertags(Tag... tags)The tags.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
registeredGatewayArn
NetworkResource.Builder registeredGatewayArn(String registeredGatewayArn)
The ARN of the gateway.
- Parameters:
registeredGatewayArn- The ARN of the gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
coreNetworkId
NetworkResource.Builder coreNetworkId(String coreNetworkId)
The ID of a core network.
- Parameters:
coreNetworkId- The ID of a core network.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
awsRegion
NetworkResource.Builder awsRegion(String awsRegion)
The Amazon Web Services Region.
- Parameters:
awsRegion- The Amazon Web Services Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountId
NetworkResource.Builder accountId(String accountId)
The Amazon Web Services account ID.
- Parameters:
accountId- The Amazon Web Services account ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
NetworkResource.Builder resourceType(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
- Parameters:
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
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
resourceId
NetworkResource.Builder resourceId(String resourceId)
The ID of the resource.
- Parameters:
resourceId- The ID of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceArn
NetworkResource.Builder resourceArn(String resourceArn)
The ARN of the resource.
- Parameters:
resourceArn- The ARN of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
NetworkResource.Builder definition(String definition)
Information about the resource, in JSON format. Network Manager gets this information by describing the resource using its Describe API call.
- Parameters:
definition- Information about the resource, in JSON format. Network Manager gets this information by describing the resource using its Describe API call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definitionTimestamp
NetworkResource.Builder definitionTimestamp(Instant definitionTimestamp)
The time that the resource definition was retrieved.
- Parameters:
definitionTimestamp- The time that the resource definition was retrieved.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
NetworkResource.Builder tags(Collection<Tag> tags)
The tags.
- Parameters:
tags- The tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
NetworkResource.Builder tags(Tag... tags)
The tags.
- Parameters:
tags- The tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
NetworkResource.Builder tags(Consumer<Tag.Builder>... tags)
The tags.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
metadata
NetworkResource.Builder metadata(Map<String,String> metadata)
The resource metadata.
- Parameters:
metadata- The resource metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-