#[non_exhaustive]pub struct CreateApiKeyInputBuilder { /* private fields */ }
Expand description
A builder for CreateApiKeyInput
.
Implementations§
source§impl CreateApiKeyInputBuilder
impl CreateApiKeyInputBuilder
sourcepub fn api_id(self, input: impl Into<String>) -> Self
pub fn api_id(self, input: impl Into<String>) -> Self
The ID for your 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 your GraphQL API.
sourcepub fn get_api_id(&self) -> &Option<String>
pub fn get_api_id(&self) -> &Option<String>
The ID for your 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 creation time, the time after which the API key expires. The date is represented as seconds since the epoch, rounded down to the nearest hour. The default value for this parameter is 7 days from creation time. For more information, see .
sourcepub fn set_expires(self, input: Option<i64>) -> Self
pub fn set_expires(self, input: Option<i64>) -> Self
From the creation time, the time after which the API key expires. The date is represented as seconds since the epoch, rounded down to the nearest hour. The default value for this parameter is 7 days from creation time. For more information, see .
sourcepub fn get_expires(&self) -> &Option<i64>
pub fn get_expires(&self) -> &Option<i64>
From the creation time, the time after which the API key expires. The date is represented as seconds since the epoch, rounded down to the nearest hour. The default value for this parameter is 7 days from creation time. For more information, see .
sourcepub fn build(self) -> Result<CreateApiKeyInput, BuildError>
pub fn build(self) -> Result<CreateApiKeyInput, BuildError>
Consumes the builder and constructs a CreateApiKeyInput
.
source§impl CreateApiKeyInputBuilder
impl CreateApiKeyInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateApiKeyOutput, SdkError<CreateApiKeyError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateApiKeyOutput, SdkError<CreateApiKeyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateApiKeyInputBuilder
impl Clone for CreateApiKeyInputBuilder
source§fn clone(&self) -> CreateApiKeyInputBuilder
fn clone(&self) -> CreateApiKeyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateApiKeyInputBuilder
impl Debug for CreateApiKeyInputBuilder
source§impl Default for CreateApiKeyInputBuilder
impl Default for CreateApiKeyInputBuilder
source§fn default() -> CreateApiKeyInputBuilder
fn default() -> CreateApiKeyInputBuilder
source§impl PartialEq for CreateApiKeyInputBuilder
impl PartialEq for CreateApiKeyInputBuilder
impl StructuralPartialEq for CreateApiKeyInputBuilder
Auto Trait Implementations§
impl Freeze for CreateApiKeyInputBuilder
impl RefUnwindSafe for CreateApiKeyInputBuilder
impl Send for CreateApiKeyInputBuilder
impl Sync for CreateApiKeyInputBuilder
impl Unpin for CreateApiKeyInputBuilder
impl UnwindSafe for CreateApiKeyInputBuilder
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