Interface AssociateNetworkScopePrincipalResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<AssociateNetworkScopePrincipalResponse.Builder,,AssociateNetworkScopePrincipalResponse> NetworkManagerResponse.Builder,SdkBuilder<AssociateNetworkScopePrincipalResponse.Builder,,AssociateNetworkScopePrincipalResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
AssociateNetworkScopePrincipalResponse
-
Method Summary
Modifier and TypeMethodDescriptionnetworkScopeId(String networkScopeId) The ID of the network scope.The principal.principalRegions(String... principalRegions) The AWS Regions of the network scope.principalRegions(Collection<String> principalRegions) The AWS Regions of the network scope.The state of the principal, which isASSOCIATINGwhile the association is being applied.state(NetworkScopePrincipalState state) The state of the principal, which isASSOCIATINGwhile the association is being applied.stateReason(Consumer<NetworkScopePrincipalStateReason.Builder> stateReason) The reason for the current state of the principal, if a reason applies.stateReason(NetworkScopePrincipalStateReason stateReason) The reason for the current state of the principal, if a reason applies.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.networkmanager.model.NetworkManagerResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
networkScopeId
The ID of the network scope.
- Parameters:
networkScopeId- The ID of the network scope.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
The principal.
- Parameters:
principal- The principal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principalRegions
AssociateNetworkScopePrincipalResponse.Builder principalRegions(Collection<String> principalRegions) The AWS Regions of the network scope. A principal always has all of the Regions of the network scope. To see whether the account is covered in each Region, call
ListNetworkScopePrincipals.- Parameters:
principalRegions- The AWS Regions of the network scope. A principal always has all of the Regions of the network scope. To see whether the account is covered in each Region, callListNetworkScopePrincipals.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principalRegions
The AWS Regions of the network scope. A principal always has all of the Regions of the network scope. To see whether the account is covered in each Region, call
ListNetworkScopePrincipals.- Parameters:
principalRegions- The AWS Regions of the network scope. A principal always has all of the Regions of the network scope. To see whether the account is covered in each Region, callListNetworkScopePrincipals.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The state of the principal, which is
ASSOCIATINGwhile the association is being applied.- Parameters:
state- The state of the principal, which isASSOCIATINGwhile the association is being applied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state of the principal, which is
ASSOCIATINGwhile the association is being applied.- Parameters:
state- The state of the principal, which isASSOCIATINGwhile the association is being applied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stateReason
AssociateNetworkScopePrincipalResponse.Builder stateReason(NetworkScopePrincipalStateReason stateReason) The reason for the current state of the principal, if a reason applies.
- Parameters:
stateReason- The reason for the current state of the principal, if a reason applies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stateReason
default AssociateNetworkScopePrincipalResponse.Builder stateReason(Consumer<NetworkScopePrincipalStateReason.Builder> stateReason) The reason for the current state of the principal, if a reason applies.
This is a convenience method that creates an instance of theNetworkScopePrincipalStateReason.Builderavoiding the need to create one manually viaNetworkScopePrincipalStateReason.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostateReason(NetworkScopePrincipalStateReason).- Parameters:
stateReason- a consumer that will call methods onNetworkScopePrincipalStateReason.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-