pub struct Builder { /* private fields */ }
Expand description
A builder for UpdateOriginRequestPolicyInput
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn origin_request_policy_config(
self,
input: OriginRequestPolicyConfig
) -> Self
pub fn origin_request_policy_config(
self,
input: OriginRequestPolicyConfig
) -> Self
An origin request policy configuration.
sourcepub fn set_origin_request_policy_config(
self,
input: Option<OriginRequestPolicyConfig>
) -> Self
pub fn set_origin_request_policy_config(
self,
input: Option<OriginRequestPolicyConfig>
) -> Self
An origin request policy configuration.
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The unique identifier for the origin request policy that you are updating. The identifier is returned in a cache behavior’s OriginRequestPolicyId
field in the response to GetDistributionConfig
.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The unique identifier for the origin request policy that you are updating. The identifier is returned in a cache behavior’s OriginRequestPolicyId
field in the response to GetDistributionConfig
.
sourcepub fn if_match(self, input: impl Into<String>) -> Self
pub fn if_match(self, input: impl Into<String>) -> Self
The version of the origin request policy that you are updating. The version is returned in the origin request policy’s ETag
field in the response to GetOriginRequestPolicyConfig
.
sourcepub fn set_if_match(self, input: Option<String>) -> Self
pub fn set_if_match(self, input: Option<String>) -> Self
The version of the origin request policy that you are updating. The version is returned in the origin request policy’s ETag
field in the response to GetOriginRequestPolicyConfig
.
sourcepub fn build(self) -> Result<UpdateOriginRequestPolicyInput, BuildError>
pub fn build(self) -> Result<UpdateOriginRequestPolicyInput, BuildError>
Consumes the builder and constructs a UpdateOriginRequestPolicyInput
.