Struct aws_sdk_cloudfront::model::custom_error_responses::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CustomErrorResponses
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn quantity(self, input: i32) -> Self
pub fn quantity(self, input: i32) -> Self
The number of HTTP status codes for which you want to specify a custom error page and/or a caching duration. If Quantity
is 0
, you can omit Items
.
sourcepub fn set_quantity(self, input: Option<i32>) -> Self
pub fn set_quantity(self, input: Option<i32>) -> Self
The number of HTTP status codes for which you want to specify a custom error page and/or a caching duration. If Quantity
is 0
, you can omit Items
.
sourcepub fn items(self, input: CustomErrorResponse) -> Self
pub fn items(self, input: CustomErrorResponse) -> Self
Appends an item to items
.
To override the contents of this collection use set_items
.
A complex type that contains a CustomErrorResponse
element for each HTTP status code for which you want to specify a custom error page and/or a caching duration.
sourcepub fn set_items(self, input: Option<Vec<CustomErrorResponse>>) -> Self
pub fn set_items(self, input: Option<Vec<CustomErrorResponse>>) -> Self
A complex type that contains a CustomErrorResponse
element for each HTTP status code for which you want to specify a custom error page and/or a caching duration.
sourcepub fn build(self) -> CustomErrorResponses
pub fn build(self) -> CustomErrorResponses
Consumes the builder and constructs a CustomErrorResponses
.