#[non_exhaustive]pub struct GetResourceInputBuilder { /* private fields */ }Expand description
A builder for GetResourceInput.
Implementations§
source§impl GetResourceInputBuilder
impl GetResourceInputBuilder
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 resource_id(self, input: impl Into<String>) -> Self
pub fn resource_id(self, input: impl Into<String>) -> Self
The identifier for the Resource resource.
This field is required.sourcepub fn set_resource_id(self, input: Option<String>) -> Self
pub fn set_resource_id(self, input: Option<String>) -> Self
The identifier for the Resource resource.
sourcepub fn get_resource_id(&self) -> &Option<String>
pub fn get_resource_id(&self) -> &Option<String>
The identifier for the Resource resource.
sourcepub fn embed(self, input: impl Into<String>) -> Self
pub fn embed(self, input: impl Into<String>) -> Self
Appends an item to embed.
To override the contents of this collection use set_embed.
A query parameter to retrieve the specified resources embedded in the returned Resource representation in the response. This embed parameter value is a list of comma-separated strings. Currently, the request supports only retrieval of the embedded Method resources this way. The query parameter value must be a single-valued list and contain the "methods" string. For example, GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods.
sourcepub fn set_embed(self, input: Option<Vec<String>>) -> Self
pub fn set_embed(self, input: Option<Vec<String>>) -> Self
A query parameter to retrieve the specified resources embedded in the returned Resource representation in the response. This embed parameter value is a list of comma-separated strings. Currently, the request supports only retrieval of the embedded Method resources this way. The query parameter value must be a single-valued list and contain the "methods" string. For example, GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods.
sourcepub fn get_embed(&self) -> &Option<Vec<String>>
pub fn get_embed(&self) -> &Option<Vec<String>>
A query parameter to retrieve the specified resources embedded in the returned Resource representation in the response. This embed parameter value is a list of comma-separated strings. Currently, the request supports only retrieval of the embedded Method resources this way. The query parameter value must be a single-valued list and contain the "methods" string. For example, GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods.
sourcepub fn build(self) -> Result<GetResourceInput, BuildError>
pub fn build(self) -> Result<GetResourceInput, BuildError>
Consumes the builder and constructs a GetResourceInput.
source§impl GetResourceInputBuilder
impl GetResourceInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GetResourceOutput, SdkError<GetResourceError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GetResourceOutput, SdkError<GetResourceError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetResourceInputBuilder
impl Clone for GetResourceInputBuilder
source§fn clone(&self) -> GetResourceInputBuilder
fn clone(&self) -> GetResourceInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GetResourceInputBuilder
impl Debug for GetResourceInputBuilder
source§impl Default for GetResourceInputBuilder
impl Default for GetResourceInputBuilder
source§fn default() -> GetResourceInputBuilder
fn default() -> GetResourceInputBuilder
source§impl PartialEq for GetResourceInputBuilder
impl PartialEq for GetResourceInputBuilder
source§fn eq(&self, other: &GetResourceInputBuilder) -> bool
fn eq(&self, other: &GetResourceInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GetResourceInputBuilder
Auto Trait Implementations§
impl Freeze for GetResourceInputBuilder
impl RefUnwindSafe for GetResourceInputBuilder
impl Send for GetResourceInputBuilder
impl Sync for GetResourceInputBuilder
impl Unpin for GetResourceInputBuilder
impl UnwindSafe for GetResourceInputBuilder
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> 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