Interface NetworkScope.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<NetworkScope.Builder,,NetworkScope> SdkBuilder<NetworkScope.Builder,,NetworkScope> SdkPojo
- Enclosing class:
NetworkScope
-
Method Summary
Modifier and TypeMethodDescriptionaccessMode(String accessMode) How the network scope admits principals.accessMode(NetworkScopeAccessMode accessMode) How the network scope admits principals.The date and time that the network scope was created.The name of the network scope.networkScopeArn(String networkScopeArn) The Amazon Resource Name (ARN) of the network scope.networkScopeId(String networkScopeId) The ID of the network scope.networkScopeRegions(String... networkScopeRegions) The AWS Regions that the network scope covers.networkScopeRegions(Collection<String> networkScopeRegions) The AWS Regions that the network scope covers.The state of the network scope.state(NetworkScopeState state) The state of the network scope.default NetworkScope.BuilderstateReason(Consumer<NetworkScopeStateReason.Builder> stateReason) The reason for the current state of the network scope.stateReason(NetworkScopeStateReason stateReason) The reason for the current state of the network scope.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.
-
networkScopeArn
The Amazon Resource Name (ARN) of the network scope.
- Parameters:
networkScopeArn- The Amazon Resource Name (ARN) of the network scope.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the network scope.
- Parameters:
name- The name of the network scope.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessMode
How the network scope admits principals. Each principal must be the ID of an AWS account that has the AWS Network Manager service-linked role. With
ACCOUNTS, the account can be any AWS account. WithORGANIZATIONS, the account that owns the network scope must be the management account or a delegated administrator for AWS Network Manager in its organization, and each principal must be an active member account of that organization. A delegated administrator can't add the management account. You choose the access mode when you create the network scope, and you can't change it.- Parameters:
accessMode- How the network scope admits principals. Each principal must be the ID of an AWS account that has the AWS Network Manager service-linked role. WithACCOUNTS, the account can be any AWS account. WithORGANIZATIONS, the account that owns the network scope must be the management account or a delegated administrator for AWS Network Manager in its organization, and each principal must be an active member account of that organization. A delegated administrator can't add the management account. You choose the access mode when you create the network scope, and you can't change it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accessMode
How the network scope admits principals. Each principal must be the ID of an AWS account that has the AWS Network Manager service-linked role. With
ACCOUNTS, the account can be any AWS account. WithORGANIZATIONS, the account that owns the network scope must be the management account or a delegated administrator for AWS Network Manager in its organization, and each principal must be an active member account of that organization. A delegated administrator can't add the management account. You choose the access mode when you create the network scope, and you can't change it.- Parameters:
accessMode- How the network scope admits principals. Each principal must be the ID of an AWS account that has the AWS Network Manager service-linked role. WithACCOUNTS, the account can be any AWS account. WithORGANIZATIONS, the account that owns the network scope must be the management account or a delegated administrator for AWS Network Manager in its organization, and each principal must be an active member account of that organization. A delegated administrator can't add the management account. You choose the access mode when you create the network scope, and you can't change it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
networkScopeRegions
The AWS Regions that the network scope covers.
- Parameters:
networkScopeRegions- The AWS Regions that the network scope covers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkScopeRegions
The AWS Regions that the network scope covers.
- Parameters:
networkScopeRegions- The AWS Regions that the network scope covers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The state of the network scope. The possible values are the following:
-
PENDING: The network scope is being created. -
AVAILABLE: The network scope is ready to use. -
UPDATING: A change to the Regions of the network scope is being applied. -
DELETING: The network scope is being deleted. -
DELETED: The network scope is deleted.GetNetworkScopeandListNetworkScopesreturn it for 2 hours. -
FAILED: A prerequisite that you must complete blocked the creation or the deletion of the network scope. The network scope isn't in use,StateReasondescribes what to complete, and deleting the network scope is the only way to leave this state. A change that's blocked by a prerequisite that you must complete leaves the network scopeAVAILABLEwith aStateReason. If a change fails for another reason, the network scope staysUPDATINGwhile the change is retried.
- Parameters:
state- The state of the network scope. The possible values are the following:-
PENDING: The network scope is being created. -
AVAILABLE: The network scope is ready to use. -
UPDATING: A change to the Regions of the network scope is being applied. -
DELETING: The network scope is being deleted. -
DELETED: The network scope is deleted.GetNetworkScopeandListNetworkScopesreturn it for 2 hours. -
FAILED: A prerequisite that you must complete blocked the creation or the deletion of the network scope. The network scope isn't in use,StateReasondescribes what to complete, and deleting the network scope is the only way to leave this state. A change that's blocked by a prerequisite that you must complete leaves the network scopeAVAILABLEwith aStateReason. If a change fails for another reason, the network scope staysUPDATINGwhile the change is retried.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
state
The state of the network scope. The possible values are the following:
-
PENDING: The network scope is being created. -
AVAILABLE: The network scope is ready to use. -
UPDATING: A change to the Regions of the network scope is being applied. -
DELETING: The network scope is being deleted. -
DELETED: The network scope is deleted.GetNetworkScopeandListNetworkScopesreturn it for 2 hours. -
FAILED: A prerequisite that you must complete blocked the creation or the deletion of the network scope. The network scope isn't in use,StateReasondescribes what to complete, and deleting the network scope is the only way to leave this state. A change that's blocked by a prerequisite that you must complete leaves the network scopeAVAILABLEwith aStateReason. If a change fails for another reason, the network scope staysUPDATINGwhile the change is retried.
- Parameters:
state- The state of the network scope. The possible values are the following:-
PENDING: The network scope is being created. -
AVAILABLE: The network scope is ready to use. -
UPDATING: A change to the Regions of the network scope is being applied. -
DELETING: The network scope is being deleted. -
DELETED: The network scope is deleted.GetNetworkScopeandListNetworkScopesreturn it for 2 hours. -
FAILED: A prerequisite that you must complete blocked the creation or the deletion of the network scope. The network scope isn't in use,StateReasondescribes what to complete, and deleting the network scope is the only way to leave this state. A change that's blocked by a prerequisite that you must complete leaves the network scopeAVAILABLEwith aStateReason. If a change fails for another reason, the network scope staysUPDATINGwhile the change is retried.
-
- 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 network scope. A
FAILEDnetwork scope always has a reason. AnAVAILABLEnetwork scope has a reason when there's a prerequisite that you must complete. For anAVAILABLEnetwork scope, the reason clears after you resolve the cause and the network scope is next checked. AFAILEDnetwork scope keeps its reason until you delete it.- Parameters:
stateReason- The reason for the current state of the network scope. AFAILEDnetwork scope always has a reason. AnAVAILABLEnetwork scope has a reason when there's a prerequisite that you must complete. For anAVAILABLEnetwork scope, the reason clears after you resolve the cause and the network scope is next checked. AFAILEDnetwork scope keeps its reason until you delete it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stateReason
The reason for the current state of the network scope. A
This is a convenience method that creates an instance of theFAILEDnetwork scope always has a reason. AnAVAILABLEnetwork scope has a reason when there's a prerequisite that you must complete. For anAVAILABLEnetwork scope, the reason clears after you resolve the cause and the network scope is next checked. AFAILEDnetwork scope keeps its reason until you delete it.NetworkScopeStateReason.Builderavoiding the need to create one manually viaNetworkScopeStateReason.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostateReason(NetworkScopeStateReason).- Parameters:
stateReason- a consumer that will call methods onNetworkScopeStateReason.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdAt
The date and time that the network scope was created.
- Parameters:
createdAt- The date and time that the network scope was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-