pub struct Builder { /* private fields */ }
Expand description
A builder for CreateWorkspaceApiKeyInput
.
Implementations§
source§impl Builder
impl Builder
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
.