Struct aws_sdk_grafana::operation::create_workspace_api_key::builders::CreateWorkspaceApiKeyInputBuilder
source · #[non_exhaustive]pub struct CreateWorkspaceApiKeyInputBuilder { /* private fields */ }
Expand description
A builder for CreateWorkspaceApiKeyInput
.
Implementations§
source§impl CreateWorkspaceApiKeyInputBuilder
impl CreateWorkspaceApiKeyInputBuilder
sourcepub fn key_name(self, input: impl Into<String>) -> Self
pub fn key_name(self, input: impl Into<String>) -> Self
Specifies the name of the key. Keynames must be unique to the workspace.
sourcepub fn set_key_name(self, input: Option<String>) -> Self
pub fn set_key_name(self, input: Option<String>) -> Self
Specifies the name of the key. Keynames must be unique to the workspace.
sourcepub fn key_role(self, input: impl Into<String>) -> Self
pub fn key_role(self, input: impl Into<String>) -> Self
Specifies the permission level of the key.
Valid values: VIEWER
|EDITOR
|ADMIN
sourcepub fn set_key_role(self, input: Option<String>) -> Self
pub fn set_key_role(self, input: Option<String>) -> Self
Specifies the permission level of the key.
Valid values: VIEWER
|EDITOR
|ADMIN
sourcepub fn seconds_to_live(self, input: i32) -> Self
pub fn seconds_to_live(self, input: i32) -> Self
Specifies the time in seconds until the key expires. Keys can be valid for up to 30 days.
sourcepub fn set_seconds_to_live(self, input: Option<i32>) -> Self
pub fn set_seconds_to_live(self, input: Option<i32>) -> Self
Specifies the time in seconds until the key expires. Keys can be valid for up to 30 days.
sourcepub fn workspace_id(self, input: impl Into<String>) -> Self
pub fn workspace_id(self, input: impl Into<String>) -> Self
The ID of the workspace to create an API key.
sourcepub fn set_workspace_id(self, input: Option<String>) -> Self
pub fn set_workspace_id(self, input: Option<String>) -> Self
The ID of the workspace to create an API key.
sourcepub fn build(self) -> Result<CreateWorkspaceApiKeyInput, BuildError>
pub fn build(self) -> Result<CreateWorkspaceApiKeyInput, BuildError>
Consumes the builder and constructs a CreateWorkspaceApiKeyInput
.
Trait Implementations§
source§impl Clone for CreateWorkspaceApiKeyInputBuilder
impl Clone for CreateWorkspaceApiKeyInputBuilder
source§fn clone(&self) -> CreateWorkspaceApiKeyInputBuilder
fn clone(&self) -> CreateWorkspaceApiKeyInputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for CreateWorkspaceApiKeyInputBuilder
impl Default for CreateWorkspaceApiKeyInputBuilder
source§fn default() -> CreateWorkspaceApiKeyInputBuilder
fn default() -> CreateWorkspaceApiKeyInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<CreateWorkspaceApiKeyInputBuilder> for CreateWorkspaceApiKeyInputBuilder
impl PartialEq<CreateWorkspaceApiKeyInputBuilder> for CreateWorkspaceApiKeyInputBuilder
source§fn eq(&self, other: &CreateWorkspaceApiKeyInputBuilder) -> bool
fn eq(&self, other: &CreateWorkspaceApiKeyInputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.