Interface NetworkScopePrincipal.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<NetworkScopePrincipal.Builder,,NetworkScopePrincipal> SdkBuilder<NetworkScopePrincipal.Builder,,NetworkScopePrincipal> SdkPojo
- Enclosing class:
NetworkScopePrincipal
-
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.state(NetworkScopePrincipalState state) The state of the principal.default NetworkScopePrincipal.BuilderstateReason(Consumer<NetworkScopePrincipalStateReason.Builder> stateReason) The reason for the current state of the principal.stateReason(NetworkScopePrincipalStateReason stateReason) The reason for the current state of the principal.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
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
The AWS Regions of the network scope. A principal always has all of the Regions of the network scope. If the account isn't covered in a Region for a reason that you must fix,
StateReasonsays so.- Parameters:
principalRegions- The AWS Regions of the network scope. A principal always has all of the Regions of the network scope. If the account isn't covered in a Region for a reason that you must fix,StateReasonsays so.- 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. If the account isn't covered in a Region for a reason that you must fix,
StateReasonsays so.- Parameters:
principalRegions- The AWS Regions of the network scope. A principal always has all of the Regions of the network scope. If the account isn't covered in a Region for a reason that you must fix,StateReasonsays so.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The state of the principal. The possible values are the following:
-
ASSOCIATING: The principal is being associated with the network scope. -
ASSOCIATED: The principal is associated with the network scope. -
FAILED: The principal isn't covered in any Region of the network scope. If you must fix the cause,StateReasondescribes it. The association is retried, and the principal becomesASSOCIATEDwhen it's covered in at least one Region. -
DISASSOCIATING: The principal is being disassociated from the network scope. -
DISASSOCIATED: The principal is disassociated from the network scope. The network scope then removes the principal, soListNetworkScopePrincipalsno longer returns it. -
INACTIVE: The principal no longer qualifies for the network scope, because the account left the organization or the network scope's owner lost its standing in the organization. The network scope keeps the principal but doesn't cover it, andStateReasondescribes the cause. The principal returns toASSOCIATINGwhen the cause is resolved. This state applies only to network scopes with theORGANIZATIONSaccess mode.
- Parameters:
state- The state of the principal. The possible values are the following:-
ASSOCIATING: The principal is being associated with the network scope. -
ASSOCIATED: The principal is associated with the network scope. -
FAILED: The principal isn't covered in any Region of the network scope. If you must fix the cause,StateReasondescribes it. The association is retried, and the principal becomesASSOCIATEDwhen it's covered in at least one Region. -
DISASSOCIATING: The principal is being disassociated from the network scope. -
DISASSOCIATED: The principal is disassociated from the network scope. The network scope then removes the principal, soListNetworkScopePrincipalsno longer returns it. -
INACTIVE: The principal no longer qualifies for the network scope, because the account left the organization or the network scope's owner lost its standing in the organization. The network scope keeps the principal but doesn't cover it, andStateReasondescribes the cause. The principal returns toASSOCIATINGwhen the cause is resolved. This state applies only to network scopes with theORGANIZATIONSaccess mode.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
state
The state of the principal. The possible values are the following:
-
ASSOCIATING: The principal is being associated with the network scope. -
ASSOCIATED: The principal is associated with the network scope. -
FAILED: The principal isn't covered in any Region of the network scope. If you must fix the cause,StateReasondescribes it. The association is retried, and the principal becomesASSOCIATEDwhen it's covered in at least one Region. -
DISASSOCIATING: The principal is being disassociated from the network scope. -
DISASSOCIATED: The principal is disassociated from the network scope. The network scope then removes the principal, soListNetworkScopePrincipalsno longer returns it. -
INACTIVE: The principal no longer qualifies for the network scope, because the account left the organization or the network scope's owner lost its standing in the organization. The network scope keeps the principal but doesn't cover it, andStateReasondescribes the cause. The principal returns toASSOCIATINGwhen the cause is resolved. This state applies only to network scopes with theORGANIZATIONSaccess mode.
- Parameters:
state- The state of the principal. The possible values are the following:-
ASSOCIATING: The principal is being associated with the network scope. -
ASSOCIATED: The principal is associated with the network scope. -
FAILED: The principal isn't covered in any Region of the network scope. If you must fix the cause,StateReasondescribes it. The association is retried, and the principal becomesASSOCIATEDwhen it's covered in at least one Region. -
DISASSOCIATING: The principal is being disassociated from the network scope. -
DISASSOCIATED: The principal is disassociated from the network scope. The network scope then removes the principal, soListNetworkScopePrincipalsno longer returns it. -
INACTIVE: The principal no longer qualifies for the network scope, because the account left the organization or the network scope's owner lost its standing in the organization. The network scope keeps the principal but doesn't cover it, andStateReasondescribes the cause. The principal returns toASSOCIATINGwhen the cause is resolved. This state applies only to network scopes with theORGANIZATIONSaccess mode.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
stateReason
The reason for the current state of the principal. A reason is always returned for a principal in the
INACTIVEstate. For a principal in theFAILEDstate, or in theASSOCIATEDstate when it covers only some of the Regions of the network scope, a reason is returned when the cause is one that you must fix. A reason is also returned for a principal in theDISASSOCIATINGstate when you must complete a prerequisite to finish removing it.- Parameters:
stateReason- The reason for the current state of the principal. A reason is always returned for a principal in theINACTIVEstate. For a principal in theFAILEDstate, or in theASSOCIATEDstate when it covers only some of the Regions of the network scope, a reason is returned when the cause is one that you must fix. A reason is also returned for a principal in theDISASSOCIATINGstate when you must complete a prerequisite to finish removing it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stateReason
default NetworkScopePrincipal.Builder stateReason(Consumer<NetworkScopePrincipalStateReason.Builder> stateReason) The reason for the current state of the principal. A reason is always returned for a principal in the
This is a convenience method that creates an instance of theINACTIVEstate. For a principal in theFAILEDstate, or in theASSOCIATEDstate when it covers only some of the Regions of the network scope, a reason is returned when the cause is one that you must fix. A reason is also returned for a principal in theDISASSOCIATINGstate when you must complete a prerequisite to finish removing it.NetworkScopePrincipalStateReason.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:
-