#[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
source§fn eq(&self, other: &CreateApiKeyInputBuilder) -> bool
fn eq(&self, other: &CreateApiKeyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.