#[non_exhaustive]pub struct CreateSessionInputBuilder { /* private fields */ }
Expand description
A builder for CreateSessionInput
.
Implementations§
source§impl CreateSessionInputBuilder
impl CreateSessionInputBuilder
sourcepub fn session_mode(self, input: SessionMode) -> Self
pub fn session_mode(self, input: SessionMode) -> Self
Specifies the mode of the session that will be created, either ReadWrite
or ReadOnly
. By default, a ReadWrite
session is created. A ReadWrite
session is capable of executing all the Zonal endpoint APIs on a directory bucket. A ReadOnly
session is constrained to execute the following Zonal endpoint APIs: GetObject
, HeadObject
, ListObjectsV2
, GetObjectAttributes
, ListParts
, and ListMultipartUploads
.
sourcepub fn set_session_mode(self, input: Option<SessionMode>) -> Self
pub fn set_session_mode(self, input: Option<SessionMode>) -> Self
Specifies the mode of the session that will be created, either ReadWrite
or ReadOnly
. By default, a ReadWrite
session is created. A ReadWrite
session is capable of executing all the Zonal endpoint APIs on a directory bucket. A ReadOnly
session is constrained to execute the following Zonal endpoint APIs: GetObject
, HeadObject
, ListObjectsV2
, GetObjectAttributes
, ListParts
, and ListMultipartUploads
.
sourcepub fn get_session_mode(&self) -> &Option<SessionMode>
pub fn get_session_mode(&self) -> &Option<SessionMode>
Specifies the mode of the session that will be created, either ReadWrite
or ReadOnly
. By default, a ReadWrite
session is created. A ReadWrite
session is capable of executing all the Zonal endpoint APIs on a directory bucket. A ReadOnly
session is constrained to execute the following Zonal endpoint APIs: GetObject
, HeadObject
, ListObjectsV2
, GetObjectAttributes
, ListParts
, and ListMultipartUploads
.
sourcepub fn bucket(self, input: impl Into<String>) -> Self
pub fn bucket(self, input: impl Into<String>) -> Self
The name of the bucket that you create a session for.
This field is required.sourcepub fn set_bucket(self, input: Option<String>) -> Self
pub fn set_bucket(self, input: Option<String>) -> Self
The name of the bucket that you create a session for.
sourcepub fn get_bucket(&self) -> &Option<String>
pub fn get_bucket(&self) -> &Option<String>
The name of the bucket that you create a session for.
sourcepub fn build(self) -> Result<CreateSessionInput, BuildError>
pub fn build(self) -> Result<CreateSessionInput, BuildError>
Consumes the builder and constructs a CreateSessionInput
.
source§impl CreateSessionInputBuilder
impl CreateSessionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateSessionOutput, SdkError<CreateSessionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateSessionOutput, SdkError<CreateSessionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateSessionInputBuilder
impl Clone for CreateSessionInputBuilder
source§fn clone(&self) -> CreateSessionInputBuilder
fn clone(&self) -> CreateSessionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateSessionInputBuilder
impl Debug for CreateSessionInputBuilder
source§impl Default for CreateSessionInputBuilder
impl Default for CreateSessionInputBuilder
source§fn default() -> CreateSessionInputBuilder
fn default() -> CreateSessionInputBuilder
source§impl PartialEq for CreateSessionInputBuilder
impl PartialEq for CreateSessionInputBuilder
source§fn eq(&self, other: &CreateSessionInputBuilder) -> bool
fn eq(&self, other: &CreateSessionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.