#[non_exhaustive]pub struct UpdateApiKeyInputBuilder { /* private fields */ }
Expand description
A builder for UpdateApiKeyInput
.
Implementations§
source§impl UpdateApiKeyInputBuilder
impl UpdateApiKeyInputBuilder
sourcepub fn api_id(self, input: impl Into<String>) -> Self
pub fn api_id(self, input: impl Into<String>) -> Self
The ID for the GraphQL API.
This field is required.sourcepub fn set_api_id(self, input: Option<String>) -> Self
pub fn set_api_id(self, input: Option<String>) -> Self
The ID for the GraphQL API.
sourcepub fn get_api_id(&self) -> &Option<String>
pub fn get_api_id(&self) -> &Option<String>
The ID for the GraphQL API.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the purpose of the API key.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the purpose of the API key.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the purpose of the API key.
sourcepub fn expires(self, input: i64) -> Self
pub fn expires(self, input: i64) -> Self
From the update time, the time after which the API key expires. The date is represented as seconds since the epoch. For more information, see .
sourcepub fn set_expires(self, input: Option<i64>) -> Self
pub fn set_expires(self, input: Option<i64>) -> Self
From the update time, the time after which the API key expires. The date is represented as seconds since the epoch. For more information, see .
sourcepub fn get_expires(&self) -> &Option<i64>
pub fn get_expires(&self) -> &Option<i64>
From the update time, the time after which the API key expires. The date is represented as seconds since the epoch. For more information, see .
sourcepub fn build(self) -> Result<UpdateApiKeyInput, BuildError>
pub fn build(self) -> Result<UpdateApiKeyInput, BuildError>
Consumes the builder and constructs a UpdateApiKeyInput
.
source§impl UpdateApiKeyInputBuilder
impl UpdateApiKeyInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<UpdateApiKeyOutput, SdkError<UpdateApiKeyError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<UpdateApiKeyOutput, SdkError<UpdateApiKeyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateApiKeyInputBuilder
impl Clone for UpdateApiKeyInputBuilder
source§fn clone(&self) -> UpdateApiKeyInputBuilder
fn clone(&self) -> UpdateApiKeyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateApiKeyInputBuilder
impl Debug for UpdateApiKeyInputBuilder
source§impl Default for UpdateApiKeyInputBuilder
impl Default for UpdateApiKeyInputBuilder
source§fn default() -> UpdateApiKeyInputBuilder
fn default() -> UpdateApiKeyInputBuilder
source§impl PartialEq for UpdateApiKeyInputBuilder
impl PartialEq for UpdateApiKeyInputBuilder
impl StructuralPartialEq for UpdateApiKeyInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateApiKeyInputBuilder
impl RefUnwindSafe for UpdateApiKeyInputBuilder
impl Send for UpdateApiKeyInputBuilder
impl Sync for UpdateApiKeyInputBuilder
impl Unpin for UpdateApiKeyInputBuilder
impl UnwindSafe for UpdateApiKeyInputBuilder
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