Interface CreateAccessPolicyRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<CreateAccessPolicyRequest.Builder,CreateAccessPolicyRequest>, IoTSiteWiseRequest.Builder, SdkBuilder<CreateAccessPolicyRequest.Builder,CreateAccessPolicyRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
CreateAccessPolicyRequest

public static interface CreateAccessPolicyRequest.Builder extends IoTSiteWiseRequest.Builder, SdkPojo, CopyableBuilder<CreateAccessPolicyRequest.Builder,CreateAccessPolicyRequest>
  • Method Details

    • accessPolicyIdentity

      CreateAccessPolicyRequest.Builder accessPolicyIdentity(Identity accessPolicyIdentity)

      The identity for this access policy. Choose an IAM Identity Center user, an IAM Identity Center group, or an IAM user.

      Parameters:
      accessPolicyIdentity - The identity for this access policy. Choose an IAM Identity Center user, an IAM Identity Center group, or an IAM user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accessPolicyIdentity

      default CreateAccessPolicyRequest.Builder accessPolicyIdentity(Consumer<Identity.Builder> accessPolicyIdentity)

      The identity for this access policy. Choose an IAM Identity Center user, an IAM Identity Center group, or an IAM user.

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

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

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

      CreateAccessPolicyRequest.Builder accessPolicyResource(Resource accessPolicyResource)

      The IoT SiteWise Monitor resource for this access policy. Choose either a portal or a project.

      Parameters:
      accessPolicyResource - The IoT SiteWise Monitor resource for this access policy. Choose either a portal or a project.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accessPolicyResource

      default CreateAccessPolicyRequest.Builder accessPolicyResource(Consumer<Resource.Builder> accessPolicyResource)

      The IoT SiteWise Monitor resource for this access policy. Choose either a portal or a project.

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

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

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

      CreateAccessPolicyRequest.Builder accessPolicyPermission(String accessPolicyPermission)

      The permission level for this access policy. Note that a project ADMINISTRATOR is also known as a project owner.

      Parameters:
      accessPolicyPermission - The permission level for this access policy. Note that a project ADMINISTRATOR is also known as a project owner.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • accessPolicyPermission

      CreateAccessPolicyRequest.Builder accessPolicyPermission(Permission accessPolicyPermission)

      The permission level for this access policy. Note that a project ADMINISTRATOR is also known as a project owner.

      Parameters:
      accessPolicyPermission - The permission level for this access policy. Note that a project ADMINISTRATOR is also known as a project owner.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • clientToken

      CreateAccessPolicyRequest.Builder clientToken(String clientToken)

      A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

      Parameters:
      clientToken - A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      A list of key-value pairs that contain metadata for the access policy. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide.

      Parameters:
      tags - A list of key-value pairs that contain metadata for the access policy. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      CreateAccessPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.