Interface StaticIp.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<StaticIp.Builder,
,StaticIp> SdkBuilder<StaticIp.Builder,
,StaticIp> SdkPojo
- Enclosing class:
StaticIp
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the static IP (arn:aws:lightsail:us-east-2:123456789101:StaticIp/9cbb4a9e-f8e3-4dfe-b57e-12345EXAMPLE
).attachedTo
(String attachedTo) The instance where the static IP is attached (Amazon_Linux-1GB-Ohio-1
).The timestamp when the static IP was created (1479735304.222
).The static IP address.isAttached
(Boolean isAttached) A Boolean value indicating whether the static IP is attached.default StaticIp.Builder
location
(Consumer<ResourceLocation.Builder> location) The region and Availability Zone where the static IP was created.location
(ResourceLocation location) The region and Availability Zone where the static IP was created.The name of the static IP (StaticIP-Ohio-EXAMPLE
).resourceType
(String resourceType) The resource type (usuallyStaticIp
).resourceType
(ResourceType resourceType) The resource type (usuallyStaticIp
).supportCode
(String supportCode) The support code.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 Details
-
name
The name of the static IP (
StaticIP-Ohio-EXAMPLE
).- Parameters:
name
- The name of the static IP (StaticIP-Ohio-EXAMPLE
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The Amazon Resource Name (ARN) of the static IP (
arn:aws:lightsail:us-east-2:123456789101:StaticIp/9cbb4a9e-f8e3-4dfe-b57e-12345EXAMPLE
).- Parameters:
arn
- The Amazon Resource Name (ARN) of the static IP (arn:aws:lightsail:us-east-2:123456789101:StaticIp/9cbb4a9e-f8e3-4dfe-b57e-12345EXAMPLE
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportCode
The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
- Parameters:
supportCode
- The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The timestamp when the static IP was created (
1479735304.222
).- Parameters:
createdAt
- The timestamp when the static IP was created (1479735304.222
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
The region and Availability Zone where the static IP was created.
- Parameters:
location
- The region and Availability Zone where the static IP was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
The region and Availability Zone where the static IP was created.
This is a convenience method that creates an instance of theResourceLocation.Builder
avoiding the need to create one manually viaResourceLocation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolocation(ResourceLocation)
.- Parameters:
location
- a consumer that will call methods onResourceLocation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The resource type (usually
StaticIp
).- Parameters:
resourceType
- The resource type (usuallyStaticIp
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The resource type (usually
StaticIp
).- Parameters:
resourceType
- The resource type (usuallyStaticIp
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipAddress
The static IP address.
- Parameters:
ipAddress
- The static IP address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachedTo
The instance where the static IP is attached (
Amazon_Linux-1GB-Ohio-1
).- Parameters:
attachedTo
- The instance where the static IP is attached (Amazon_Linux-1GB-Ohio-1
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isAttached
A Boolean value indicating whether the static IP is attached.
- Parameters:
isAttached
- A Boolean value indicating whether the static IP is attached.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-