pub struct Builder { /* private fields */ }Expand description
A builder for CreateDocumentationPartInput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn rest_api_id(self, input: impl Into<String>) -> Self
pub fn rest_api_id(self, input: impl Into<String>) -> Self
The string identifier of the associated RestApi.
sourcepub fn set_rest_api_id(self, input: Option<String>) -> Self
pub fn set_rest_api_id(self, input: Option<String>) -> Self
The string identifier of the associated RestApi.
sourcepub fn location(self, input: DocumentationPartLocation) -> Self
pub fn location(self, input: DocumentationPartLocation) -> Self
The location of the targeted API entity of the to-be-created documentation part.
sourcepub fn set_location(self, input: Option<DocumentationPartLocation>) -> Self
pub fn set_location(self, input: Option<DocumentationPartLocation>) -> Self
The location of the targeted API entity of the to-be-created documentation part.
sourcepub fn properties(self, input: impl Into<String>) -> Self
pub fn properties(self, input: impl Into<String>) -> Self
The new documentation content map of the targeted API entity. Enclosed key-value pairs are API-specific, but only OpenAPI-compliant key-value pairs can be exported and, hence, published.
sourcepub fn set_properties(self, input: Option<String>) -> Self
pub fn set_properties(self, input: Option<String>) -> Self
The new documentation content map of the targeted API entity. Enclosed key-value pairs are API-specific, but only OpenAPI-compliant key-value pairs can be exported and, hence, published.
sourcepub fn build(self) -> Result<CreateDocumentationPartInput, BuildError>
pub fn build(self) -> Result<CreateDocumentationPartInput, BuildError>
Consumes the builder and constructs a CreateDocumentationPartInput.