Interface OriginRequestPolicySummary.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<OriginRequestPolicySummary.Builder,
,OriginRequestPolicySummary> SdkBuilder<OriginRequestPolicySummary.Builder,
,OriginRequestPolicySummary> SdkPojo
- Enclosing class:
OriginRequestPolicySummary
@Mutable
@NotThreadSafe
public static interface OriginRequestPolicySummary.Builder
extends SdkPojo, CopyableBuilder<OriginRequestPolicySummary.Builder,OriginRequestPolicySummary>
-
Method Summary
Modifier and TypeMethodDescriptionoriginRequestPolicy
(Consumer<OriginRequestPolicy.Builder> originRequestPolicy) The origin request policy.originRequestPolicy
(OriginRequestPolicy originRequestPolicy) The origin request policy.The type of origin request policy, eithermanaged
(created by Amazon Web Services) orcustom
(created in this Amazon Web Services account).type
(OriginRequestPolicyType type) The type of origin request policy, eithermanaged
(created by Amazon Web Services) orcustom
(created in this Amazon Web Services account).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, sdkFieldNameToField, sdkFields
-
Method Details
-
type
The type of origin request policy, either
managed
(created by Amazon Web Services) orcustom
(created in this Amazon Web Services account).- Parameters:
type
- The type of origin request policy, eithermanaged
(created by Amazon Web Services) orcustom
(created in this Amazon Web Services account).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of origin request policy, either
managed
(created by Amazon Web Services) orcustom
(created in this Amazon Web Services account).- Parameters:
type
- The type of origin request policy, eithermanaged
(created by Amazon Web Services) orcustom
(created in this Amazon Web Services account).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
originRequestPolicy
The origin request policy.
- Parameters:
originRequestPolicy
- The origin request policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
originRequestPolicy
default OriginRequestPolicySummary.Builder originRequestPolicy(Consumer<OriginRequestPolicy.Builder> originRequestPolicy) The origin request policy.
This is a convenience method that creates an instance of theOriginRequestPolicy.Builder
avoiding the need to create one manually viaOriginRequestPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooriginRequestPolicy(OriginRequestPolicy)
.- Parameters:
originRequestPolicy
- a consumer that will call methods onOriginRequestPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-