Interface DescribePermissionsResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<DescribePermissionsResponse.Builder,DescribePermissionsResponse>, OpsWorksResponse.Builder, SdkBuilder<DescribePermissionsResponse.Builder,DescribePermissionsResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
DescribePermissionsResponse

public static interface DescribePermissionsResponse.Builder extends OpsWorksResponse.Builder, SdkPojo, CopyableBuilder<DescribePermissionsResponse.Builder,DescribePermissionsResponse>
  • Method Details

    • permissions

      An array of Permission objects that describe the stack permissions.

      • If the request object contains only a stack ID, the array contains a Permission object with permissions for each of the stack IAM ARNs.

      • If the request object contains only an IAM ARN, the array contains a Permission object with permissions for each of the user's stack IDs.

      • If the request contains a stack ID and an IAM ARN, the array contains a single Permission object with permissions for the specified stack and IAM ARN.

      Parameters:
      permissions - An array of Permission objects that describe the stack permissions.

      • If the request object contains only a stack ID, the array contains a Permission object with permissions for each of the stack IAM ARNs.

      • If the request object contains only an IAM ARN, the array contains a Permission object with permissions for each of the user's stack IDs.

      • If the request contains a stack ID and an IAM ARN, the array contains a single Permission object with permissions for the specified stack and IAM ARN.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • permissions

      DescribePermissionsResponse.Builder permissions(Permission... permissions)

      An array of Permission objects that describe the stack permissions.

      • If the request object contains only a stack ID, the array contains a Permission object with permissions for each of the stack IAM ARNs.

      • If the request object contains only an IAM ARN, the array contains a Permission object with permissions for each of the user's stack IDs.

      • If the request contains a stack ID and an IAM ARN, the array contains a single Permission object with permissions for the specified stack and IAM ARN.

      Parameters:
      permissions - An array of Permission objects that describe the stack permissions.

      • If the request object contains only a stack ID, the array contains a Permission object with permissions for each of the stack IAM ARNs.

      • If the request object contains only an IAM ARN, the array contains a Permission object with permissions for each of the user's stack IDs.

      • If the request contains a stack ID and an IAM ARN, the array contains a single Permission object with permissions for the specified stack and IAM ARN.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • permissions

      An array of Permission objects that describe the stack permissions.

      • If the request object contains only a stack ID, the array contains a Permission object with permissions for each of the stack IAM ARNs.

      • If the request object contains only an IAM ARN, the array contains a Permission object with permissions for each of the user's stack IDs.

      • If the request contains a stack ID and an IAM ARN, the array contains a single Permission object with permissions for the specified stack and IAM ARN.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to permissions(List<Permission>).

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