Interface NetworkScope.Builder

  • Method Details

    • networkScopeId

      NetworkScope.Builder networkScopeId(String 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

      NetworkScope.Builder networkScopeArn(String 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

      NetworkScope.Builder accessMode(String 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. With ORGANIZATIONS, 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. With ACCOUNTS, the account can be any AWS account. With ORGANIZATIONS, 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. With ORGANIZATIONS, 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. With ACCOUNTS, the account can be any AWS account. With ORGANIZATIONS, 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

      NetworkScope.Builder networkScopeRegions(Collection<String> 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

      NetworkScope.Builder networkScopeRegions(String... 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. GetNetworkScope and ListNetworkScopes return 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, StateReason describes 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 scope AVAILABLE with a StateReason. If a change fails for another reason, the network scope stays UPDATING while 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. GetNetworkScope and ListNetworkScopes return 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, StateReason describes 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 scope AVAILABLE with a StateReason. If a change fails for another reason, the network scope stays UPDATING while 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. GetNetworkScope and ListNetworkScopes return 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, StateReason describes 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 scope AVAILABLE with a StateReason. If a change fails for another reason, the network scope stays UPDATING while 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. GetNetworkScope and ListNetworkScopes return 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, StateReason describes 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 scope AVAILABLE with a StateReason. If a change fails for another reason, the network scope stays UPDATING while 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 FAILED network scope always has a reason. An AVAILABLE network scope has a reason when there's a prerequisite that you must complete. For an AVAILABLE network scope, the reason clears after you resolve the cause and the network scope is next checked. A FAILED network scope keeps its reason until you delete it.

      Parameters:
      stateReason - The reason for the current state of the network scope. A FAILED network scope always has a reason. An AVAILABLE network scope has a reason when there's a prerequisite that you must complete. For an AVAILABLE network scope, the reason clears after you resolve the cause and the network scope is next checked. A FAILED network 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 FAILED network scope always has a reason. An AVAILABLE network scope has a reason when there's a prerequisite that you must complete. For an AVAILABLE network scope, the reason clears after you resolve the cause and the network scope is next checked. A FAILED network scope keeps its reason until you delete it.

      This is a convenience method that creates an instance of the NetworkScopeStateReason.Builder avoiding the need to create one manually via NetworkScopeStateReason.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to stateReason(NetworkScopeStateReason).

      Parameters:
      stateReason - a consumer that will call methods on NetworkScopeStateReason.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdAt

      NetworkScope.Builder createdAt(Instant 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.