Struct aws_sdk_apigateway::operation::create_documentation_part::builders::CreateDocumentationPartOutputBuilder
source · #[non_exhaustive]pub struct CreateDocumentationPartOutputBuilder { /* private fields */ }
Expand description
A builder for CreateDocumentationPartOutput
.
Implementations§
source§impl CreateDocumentationPartOutputBuilder
impl CreateDocumentationPartOutputBuilder
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) -> CreateDocumentationPartOutput
pub fn build(self) -> CreateDocumentationPartOutput
Consumes the builder and constructs a CreateDocumentationPartOutput
.
Trait Implementations§
source§impl Clone for CreateDocumentationPartOutputBuilder
impl Clone for CreateDocumentationPartOutputBuilder
source§fn clone(&self) -> CreateDocumentationPartOutputBuilder
fn clone(&self) -> CreateDocumentationPartOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateDocumentationPartOutputBuilder
impl Default for CreateDocumentationPartOutputBuilder
source§fn default() -> CreateDocumentationPartOutputBuilder
fn default() -> CreateDocumentationPartOutputBuilder
source§impl PartialEq<CreateDocumentationPartOutputBuilder> for CreateDocumentationPartOutputBuilder
impl PartialEq<CreateDocumentationPartOutputBuilder> for CreateDocumentationPartOutputBuilder
source§fn eq(&self, other: &CreateDocumentationPartOutputBuilder) -> bool
fn eq(&self, other: &CreateDocumentationPartOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.