Interface StaticIp.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<StaticIp.Builder,StaticIp>,SdkBuilder<StaticIp.Builder,StaticIp>,SdkPojo
- Enclosing class:
- StaticIp
public static interface StaticIp.Builder extends SdkPojo, CopyableBuilder<StaticIp.Builder,StaticIp>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StaticIp.Builderarn(String arn)The Amazon Resource Name (ARN) of the static IP (arn:aws:lightsail:us-east-2:123456789101:StaticIp/9cbb4a9e-f8e3-4dfe-b57e-12345EXAMPLE).StaticIp.BuilderattachedTo(String attachedTo)The instance where the static IP is attached (Amazon_Linux-1GB-Ohio-1).StaticIp.BuildercreatedAt(Instant createdAt)The timestamp when the static IP was created (1479735304.222).StaticIp.BuilderipAddress(String ipAddress)The static IP address.StaticIp.BuilderisAttached(Boolean isAttached)A Boolean value indicating whether the static IP is attached.default StaticIp.Builderlocation(Consumer<ResourceLocation.Builder> location)The region and Availability Zone where the static IP was created.StaticIp.Builderlocation(ResourceLocation location)The region and Availability Zone where the static IP was created.StaticIp.Buildername(String name)The name of the static IP (StaticIP-Ohio-EXAMPLE).StaticIp.BuilderresourceType(String resourceType)The resource type (usuallyStaticIp).StaticIp.BuilderresourceType(ResourceType resourceType)The resource type (usuallyStaticIp).StaticIp.BuildersupportCode(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 Detail
-
name
StaticIp.Builder name(String 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
StaticIp.Builder arn(String 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
StaticIp.Builder supportCode(String 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
StaticIp.Builder createdAt(Instant 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
StaticIp.Builder location(ResourceLocation 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
default StaticIp.Builder location(Consumer<ResourceLocation.Builder> location)
The region and Availability Zone where the static IP was created.
This is a convenience method that creates an instance of theResourceLocation.Builderavoiding the need to create one manually viaResourceLocation.builder().When the
Consumercompletes,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:
location(ResourceLocation)
-
resourceType
StaticIp.Builder resourceType(String 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,ResourceType
-
resourceType
StaticIp.Builder resourceType(ResourceType 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,ResourceType
-
ipAddress
StaticIp.Builder ipAddress(String 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
StaticIp.Builder attachedTo(String 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
StaticIp.Builder isAttached(Boolean 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.
-
-