Interface GetEnvironmentResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetEnvironmentResponse.Builder,GetEnvironmentResponse>,MigrationHubRefactorSpacesResponse.Builder,SdkBuilder<GetEnvironmentResponse.Builder,GetEnvironmentResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetEnvironmentResponse
public static interface GetEnvironmentResponse.Builder extends MigrationHubRefactorSpacesResponse.Builder, SdkPojo, CopyableBuilder<GetEnvironmentResponse.Builder,GetEnvironmentResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetEnvironmentResponse.Builderarn(String arn)The Amazon Resource Name (ARN) of the environment.GetEnvironmentResponse.BuildercreatedTime(Instant createdTime)A timestamp that indicates when the environment is created.GetEnvironmentResponse.Builderdescription(String description)The description of the environment.GetEnvironmentResponse.BuilderenvironmentId(String environmentId)The unique identifier of the environment.default GetEnvironmentResponse.Buildererror(Consumer<ErrorResponse.Builder> error)Any error associated with the environment resource.GetEnvironmentResponse.Buildererror(ErrorResponse error)Any error associated with the environment resource.GetEnvironmentResponse.BuilderlastUpdatedTime(Instant lastUpdatedTime)A timestamp that indicates when the environment was last updated.GetEnvironmentResponse.Buildername(String name)The name of the environment.GetEnvironmentResponse.BuildernetworkFabricType(String networkFabricType)The network fabric type of the environment.GetEnvironmentResponse.BuildernetworkFabricType(NetworkFabricType networkFabricType)The network fabric type of the environment.GetEnvironmentResponse.BuilderownerAccountId(String ownerAccountId)The Amazon Web Services account ID of the environment owner.GetEnvironmentResponse.Builderstate(String state)The current state of the environment.GetEnvironmentResponse.Builderstate(EnvironmentState state)The current state of the environment.GetEnvironmentResponse.Buildertags(Map<String,String> tags)The tags to assign to the environment.GetEnvironmentResponse.BuildertransitGatewayId(String transitGatewayId)The ID of the Transit Gateway set up by the environment, if applicable.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.migrationhubrefactorspaces.model.MigrationHubRefactorSpacesResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
arn
GetEnvironmentResponse.Builder arn(String arn)
The Amazon Resource Name (ARN) of the environment.
- Parameters:
arn- The Amazon Resource Name (ARN) of the environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdTime
GetEnvironmentResponse.Builder createdTime(Instant createdTime)
A timestamp that indicates when the environment is created.
- Parameters:
createdTime- A timestamp that indicates when the environment is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
GetEnvironmentResponse.Builder description(String description)
The description of the environment.
- Parameters:
description- The description of the environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environmentId
GetEnvironmentResponse.Builder environmentId(String environmentId)
The unique identifier of the environment.
- Parameters:
environmentId- The unique identifier of the environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
GetEnvironmentResponse.Builder error(ErrorResponse error)
Any error associated with the environment resource.
- Parameters:
error- Any error associated with the environment resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
default GetEnvironmentResponse.Builder error(Consumer<ErrorResponse.Builder> error)
Any error associated with the environment resource.
This is a convenience method that creates an instance of theErrorResponse.Builderavoiding the need to create one manually viaErrorResponse.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerror(ErrorResponse).- Parameters:
error- a consumer that will call methods onErrorResponse.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
error(ErrorResponse)
-
lastUpdatedTime
GetEnvironmentResponse.Builder lastUpdatedTime(Instant lastUpdatedTime)
A timestamp that indicates when the environment was last updated.
- Parameters:
lastUpdatedTime- A timestamp that indicates when the environment was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
GetEnvironmentResponse.Builder name(String name)
The name of the environment.
- Parameters:
name- The name of the environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkFabricType
GetEnvironmentResponse.Builder networkFabricType(String networkFabricType)
The network fabric type of the environment.
- Parameters:
networkFabricType- The network fabric type of the environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
NetworkFabricType,NetworkFabricType
-
networkFabricType
GetEnvironmentResponse.Builder networkFabricType(NetworkFabricType networkFabricType)
The network fabric type of the environment.
- Parameters:
networkFabricType- The network fabric type of the environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
NetworkFabricType,NetworkFabricType
-
ownerAccountId
GetEnvironmentResponse.Builder ownerAccountId(String ownerAccountId)
The Amazon Web Services account ID of the environment owner.
- Parameters:
ownerAccountId- The Amazon Web Services account ID of the environment owner.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
GetEnvironmentResponse.Builder state(String state)
The current state of the environment.
- Parameters:
state- The current state of the environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EnvironmentState,EnvironmentState
-
state
GetEnvironmentResponse.Builder state(EnvironmentState state)
The current state of the environment.
- Parameters:
state- The current state of the environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EnvironmentState,EnvironmentState
-
tags
GetEnvironmentResponse.Builder tags(Map<String,String> tags)
The tags to assign to the environment. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.
- Parameters:
tags- The tags to assign to the environment. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transitGatewayId
GetEnvironmentResponse.Builder transitGatewayId(String transitGatewayId)
The ID of the Transit Gateway set up by the environment, if applicable.
- Parameters:
transitGatewayId- The ID of the Transit Gateway set up by the environment, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-