Interface NetworkScopePrincipal.Builder

  • Method Details

    • networkScopeId

      NetworkScopePrincipal.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.
    • principal

      NetworkScopePrincipal.Builder principal(String principal)

      The principal.

      Parameters:
      principal - The principal.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • principalRegions

      NetworkScopePrincipal.Builder principalRegions(Collection<String> 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, StateReason says 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, StateReason says so.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • principalRegions

      NetworkScopePrincipal.Builder principalRegions(String... 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, StateReason says 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, StateReason says 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, StateReason describes it. The association is retried, and the principal becomes ASSOCIATED when 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, so ListNetworkScopePrincipals no 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, and StateReason describes the cause. The principal returns to ASSOCIATING when the cause is resolved. This state applies only to network scopes with the ORGANIZATIONS access 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, StateReason describes it. The association is retried, and the principal becomes ASSOCIATED when 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, so ListNetworkScopePrincipals no 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, and StateReason describes the cause. The principal returns to ASSOCIATING when the cause is resolved. This state applies only to network scopes with the ORGANIZATIONS access 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, StateReason describes it. The association is retried, and the principal becomes ASSOCIATED when 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, so ListNetworkScopePrincipals no 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, and StateReason describes the cause. The principal returns to ASSOCIATING when the cause is resolved. This state applies only to network scopes with the ORGANIZATIONS access 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, StateReason describes it. The association is retried, and the principal becomes ASSOCIATED when 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, so ListNetworkScopePrincipals no 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, and StateReason describes the cause. The principal returns to ASSOCIATING when the cause is resolved. This state applies only to network scopes with the ORGANIZATIONS access 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 INACTIVE state. For a principal in the FAILED state, or in the ASSOCIATED state 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 the DISASSOCIATING state 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 the INACTIVE state. For a principal in the FAILED state, or in the ASSOCIATED state 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 the DISASSOCIATING state 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

      The reason for the current state of the principal. A reason is always returned for a principal in the INACTIVE state. For a principal in the FAILED state, or in the ASSOCIATED state 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 the DISASSOCIATING state when you must complete a prerequisite to finish removing it.

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

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

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