#[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
impl StructuralPartialEq for CreateSessionInputBuilder
Auto Trait Implementations§
impl Freeze for CreateSessionInputBuilder
impl RefUnwindSafe for CreateSessionInputBuilder
impl Send for CreateSessionInputBuilder
impl Sync for CreateSessionInputBuilder
impl Unpin for CreateSessionInputBuilder
impl UnwindSafe for CreateSessionInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)