Interface OriginRequestPolicySummary.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<OriginRequestPolicySummary.Builder,OriginRequestPolicySummary>
,SdkBuilder<OriginRequestPolicySummary.Builder,OriginRequestPolicySummary>
,SdkPojo
- Enclosing class:
- OriginRequestPolicySummary
public static interface OriginRequestPolicySummary.Builder extends SdkPojo, CopyableBuilder<OriginRequestPolicySummary.Builder,OriginRequestPolicySummary>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default OriginRequestPolicySummary.Builder
originRequestPolicy(Consumer<OriginRequestPolicy.Builder> originRequestPolicy)
The origin request policy.OriginRequestPolicySummary.Builder
originRequestPolicy(OriginRequestPolicy originRequestPolicy)
The origin request policy.OriginRequestPolicySummary.Builder
type(String type)
The type of origin request policy, eithermanaged
(created by Amazon Web Services) orcustom
(created in this Amazon Web Services account).OriginRequestPolicySummary.Builder
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, sdkFields
-
-
-
-
Method Detail
-
type
OriginRequestPolicySummary.Builder type(String 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:
OriginRequestPolicyType
,OriginRequestPolicyType
-
type
OriginRequestPolicySummary.Builder type(OriginRequestPolicyType 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:
OriginRequestPolicyType
,OriginRequestPolicyType
-
originRequestPolicy
OriginRequestPolicySummary.Builder originRequestPolicy(OriginRequestPolicy 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:
originRequestPolicy(OriginRequestPolicy)
-
-