Interface GetEnvironmentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetEnvironmentResponse.Builder,
,GetEnvironmentResponse> MigrationHubRefactorSpacesResponse.Builder
,SdkBuilder<GetEnvironmentResponse.Builder,
,GetEnvironmentResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetEnvironmentResponse
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the environment.createdTime
(Instant createdTime) A timestamp that indicates when the environment is created.description
(String description) The description of the environment.environmentId
(String environmentId) The unique identifier of the environment.default GetEnvironmentResponse.Builder
error
(Consumer<ErrorResponse.Builder> error) Any error associated with the environment resource.error
(ErrorResponse error) Any error associated with the environment resource.lastUpdatedTime
(Instant lastUpdatedTime) A timestamp that indicates when the environment was last updated.The name of the environment.networkFabricType
(String networkFabricType) The network fabric type of the environment.networkFabricType
(NetworkFabricType networkFabricType) The network fabric type of the environment.ownerAccountId
(String ownerAccountId) The Amazon Web Services account ID of the environment owner.The current state of the environment.state
(EnvironmentState state) The current state of the environment.The tags to assign to the environment.transitGatewayId
(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, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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
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
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
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
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
Any error associated with the environment resource.
This is a convenience method that creates an instance of theErrorResponse.Builder
avoiding the need to create one manually viaErrorResponse.builder()
.When the
Consumer
completes,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:
-
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
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
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
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:
-
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
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:
-
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:
-
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
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.
-