Interface CloudFrontOriginAccessIdentity.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CloudFrontOriginAccessIdentity.Builder,
,CloudFrontOriginAccessIdentity> SdkBuilder<CloudFrontOriginAccessIdentity.Builder,
,CloudFrontOriginAccessIdentity> SdkPojo
- Enclosing class:
CloudFrontOriginAccessIdentity
public static interface CloudFrontOriginAccessIdentity.Builder
extends SdkPojo, CopyableBuilder<CloudFrontOriginAccessIdentity.Builder,CloudFrontOriginAccessIdentity>
-
Method Summary
Modifier and TypeMethodDescriptioncloudFrontOriginAccessIdentityConfig
(Consumer<CloudFrontOriginAccessIdentityConfig.Builder> cloudFrontOriginAccessIdentityConfig) The current configuration information for the identity.cloudFrontOriginAccessIdentityConfig
(CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig) The current configuration information for the identity.The ID for the origin access identity, for example,E74FTE3AJFJ256A
.s3CanonicalUserId
(String s3CanonicalUserId) The Amazon S3 canonical user ID for the origin access identity, used when giving the origin access identity read permission to an object in Amazon S3.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
id
The ID for the origin access identity, for example,
E74FTE3AJFJ256A
.- Parameters:
id
- The ID for the origin access identity, for example,E74FTE3AJFJ256A
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
s3CanonicalUserId
The Amazon S3 canonical user ID for the origin access identity, used when giving the origin access identity read permission to an object in Amazon S3.
- Parameters:
s3CanonicalUserId
- The Amazon S3 canonical user ID for the origin access identity, used when giving the origin access identity read permission to an object in Amazon S3.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cloudFrontOriginAccessIdentityConfig
CloudFrontOriginAccessIdentity.Builder cloudFrontOriginAccessIdentityConfig(CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig) The current configuration information for the identity.
- Parameters:
cloudFrontOriginAccessIdentityConfig
- The current configuration information for the identity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cloudFrontOriginAccessIdentityConfig
default CloudFrontOriginAccessIdentity.Builder cloudFrontOriginAccessIdentityConfig(Consumer<CloudFrontOriginAccessIdentityConfig.Builder> cloudFrontOriginAccessIdentityConfig) The current configuration information for the identity.
This is a convenience method that creates an instance of theCloudFrontOriginAccessIdentityConfig.Builder
avoiding the need to create one manually viaCloudFrontOriginAccessIdentityConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocloudFrontOriginAccessIdentityConfig(CloudFrontOriginAccessIdentityConfig)
.- Parameters:
cloudFrontOriginAccessIdentityConfig
- a consumer that will call methods onCloudFrontOriginAccessIdentityConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-