Struct aws_sdk_apigateway::operation::get_documentation_part::builders::GetDocumentationPartOutputBuilder
source · #[non_exhaustive]pub struct GetDocumentationPartOutputBuilder { /* private fields */ }
Expand description
A builder for GetDocumentationPartOutput
.
Implementations§
source§impl GetDocumentationPartOutputBuilder
impl GetDocumentationPartOutputBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The DocumentationPart identifier, generated by API Gateway when the DocumentationPart
is created.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The DocumentationPart identifier, generated by API Gateway when the DocumentationPart
is created.
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
The DocumentationPart identifier, generated by API Gateway when the DocumentationPart
is created.
sourcepub fn location(self, input: DocumentationPartLocation) -> Self
pub fn location(self, input: DocumentationPartLocation) -> Self
The location of the API entity to which the documentation applies. Valid fields depend on the targeted API entity type. All the valid location fields are not required. If not explicitly specified, a valid location field is treated as a wildcard and associated documentation content may be inherited by matching entities, unless overridden.
sourcepub fn set_location(self, input: Option<DocumentationPartLocation>) -> Self
pub fn set_location(self, input: Option<DocumentationPartLocation>) -> Self
The location of the API entity to which the documentation applies. Valid fields depend on the targeted API entity type. All the valid location fields are not required. If not explicitly specified, a valid location field is treated as a wildcard and associated documentation content may be inherited by matching entities, unless overridden.
sourcepub fn get_location(&self) -> &Option<DocumentationPartLocation>
pub fn get_location(&self) -> &Option<DocumentationPartLocation>
The location of the API entity to which the documentation applies. Valid fields depend on the targeted API entity type. All the valid location fields are not required. If not explicitly specified, a valid location field is treated as a wildcard and associated documentation content may be inherited by matching entities, unless overridden.
sourcepub fn properties(self, input: impl Into<String>) -> Self
pub fn properties(self, input: impl Into<String>) -> Self
A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., "{ \"description\": \"The API does ...\" }"
. Only OpenAPI-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a OpenAPI extension of x-amazon-apigateway-documentation
.
sourcepub fn set_properties(self, input: Option<String>) -> Self
pub fn set_properties(self, input: Option<String>) -> Self
A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., "{ \"description\": \"The API does ...\" }"
. Only OpenAPI-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a OpenAPI extension of x-amazon-apigateway-documentation
.
sourcepub fn get_properties(&self) -> &Option<String>
pub fn get_properties(&self) -> &Option<String>
A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., "{ \"description\": \"The API does ...\" }"
. Only OpenAPI-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a OpenAPI extension of x-amazon-apigateway-documentation
.
sourcepub fn build(self) -> GetDocumentationPartOutput
pub fn build(self) -> GetDocumentationPartOutput
Consumes the builder and constructs a GetDocumentationPartOutput
.
Trait Implementations§
source§impl Clone for GetDocumentationPartOutputBuilder
impl Clone for GetDocumentationPartOutputBuilder
source§fn clone(&self) -> GetDocumentationPartOutputBuilder
fn clone(&self) -> GetDocumentationPartOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetDocumentationPartOutputBuilder
impl Default for GetDocumentationPartOutputBuilder
source§fn default() -> GetDocumentationPartOutputBuilder
fn default() -> GetDocumentationPartOutputBuilder
source§impl PartialEq for GetDocumentationPartOutputBuilder
impl PartialEq for GetDocumentationPartOutputBuilder
source§fn eq(&self, other: &GetDocumentationPartOutputBuilder) -> bool
fn eq(&self, other: &GetDocumentationPartOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.