Interface CreateOriginAccessControlResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudFrontResponse.Builder,CopyableBuilder<CreateOriginAccessControlResponse.Builder,,CreateOriginAccessControlResponse> SdkBuilder<CreateOriginAccessControlResponse.Builder,,CreateOriginAccessControlResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateOriginAccessControlResponse
@Mutable
@NotThreadSafe
public static interface CreateOriginAccessControlResponse.Builder
extends CloudFrontResponse.Builder, SdkPojo, CopyableBuilder<CreateOriginAccessControlResponse.Builder,CreateOriginAccessControlResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe version identifier for the current version of the origin access control.The URL of the origin access control.originAccessControl(Consumer<OriginAccessControl.Builder> originAccessControl) Contains an origin access control.originAccessControl(OriginAccessControl originAccessControl) Contains an origin access control.Methods inherited from interface software.amazon.awssdk.services.cloudfront.model.CloudFrontResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
originAccessControl
CreateOriginAccessControlResponse.Builder originAccessControl(OriginAccessControl originAccessControl) Contains an origin access control.
- Parameters:
originAccessControl- Contains an origin access control.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
originAccessControl
default CreateOriginAccessControlResponse.Builder originAccessControl(Consumer<OriginAccessControl.Builder> originAccessControl) Contains an origin access control.
This is a convenience method that creates an instance of theOriginAccessControl.Builderavoiding the need to create one manually viaOriginAccessControl.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooriginAccessControl(OriginAccessControl).- Parameters:
originAccessControl- a consumer that will call methods onOriginAccessControl.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
location
The URL of the origin access control.
- Parameters:
location- The URL of the origin access control.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eTag
The version identifier for the current version of the origin access control.
- Parameters:
eTag- The version identifier for the current version of the origin access control.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-