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