Struct aws_sdk_apigateway::operation::create_documentation_part::builders::CreateDocumentationPartInputBuilder
source · #[non_exhaustive]pub struct CreateDocumentationPartInputBuilder { /* private fields */ }Expand description
A builder for CreateDocumentationPartInput.
Implementations§
source§impl CreateDocumentationPartInputBuilder
impl CreateDocumentationPartInputBuilder
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.
This field is required.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 get_rest_api_id(&self) -> &Option<String>
pub fn get_rest_api_id(&self) -> &Option<String>
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.
This field is required.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 get_location(&self) -> &Option<DocumentationPartLocation>
pub fn get_location(&self) -> &Option<DocumentationPartLocation>
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.
This field is required.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 get_properties(&self) -> &Option<String>
pub fn get_properties(&self) -> &Option<String>
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.
source§impl CreateDocumentationPartInputBuilder
impl CreateDocumentationPartInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateDocumentationPartOutput, SdkError<CreateDocumentationPartError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateDocumentationPartOutput, SdkError<CreateDocumentationPartError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateDocumentationPartInputBuilder
impl Clone for CreateDocumentationPartInputBuilder
source§fn clone(&self) -> CreateDocumentationPartInputBuilder
fn clone(&self) -> CreateDocumentationPartInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreateDocumentationPartInputBuilder
impl Default for CreateDocumentationPartInputBuilder
source§fn default() -> CreateDocumentationPartInputBuilder
fn default() -> CreateDocumentationPartInputBuilder
source§impl PartialEq for CreateDocumentationPartInputBuilder
impl PartialEq for CreateDocumentationPartInputBuilder
source§fn eq(&self, other: &CreateDocumentationPartInputBuilder) -> bool
fn eq(&self, other: &CreateDocumentationPartInputBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateDocumentationPartInputBuilder
Auto Trait Implementations§
impl Freeze for CreateDocumentationPartInputBuilder
impl RefUnwindSafe for CreateDocumentationPartInputBuilder
impl Send for CreateDocumentationPartInputBuilder
impl Sync for CreateDocumentationPartInputBuilder
impl Unpin for CreateDocumentationPartInputBuilder
impl UnwindSafe for CreateDocumentationPartInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more