#[non_exhaustive]pub struct StartDeviceAuthorizationOutputBuilder { /* private fields */ }
Expand description
A builder for StartDeviceAuthorizationOutput
.
Implementations§
Source§impl StartDeviceAuthorizationOutputBuilder
impl StartDeviceAuthorizationOutputBuilder
Sourcepub fn device_code(self, input: impl Into<String>) -> Self
pub fn device_code(self, input: impl Into<String>) -> Self
The short-lived code that is used by the device when polling for a session token.
Sourcepub fn set_device_code(self, input: Option<String>) -> Self
pub fn set_device_code(self, input: Option<String>) -> Self
The short-lived code that is used by the device when polling for a session token.
Sourcepub fn get_device_code(&self) -> &Option<String>
pub fn get_device_code(&self) -> &Option<String>
The short-lived code that is used by the device when polling for a session token.
Sourcepub fn user_code(self, input: impl Into<String>) -> Self
pub fn user_code(self, input: impl Into<String>) -> Self
A one-time user verification code. This is needed to authorize an in-use device.
Sourcepub fn set_user_code(self, input: Option<String>) -> Self
pub fn set_user_code(self, input: Option<String>) -> Self
A one-time user verification code. This is needed to authorize an in-use device.
Sourcepub fn get_user_code(&self) -> &Option<String>
pub fn get_user_code(&self) -> &Option<String>
A one-time user verification code. This is needed to authorize an in-use device.
Sourcepub fn verification_uri(self, input: impl Into<String>) -> Self
pub fn verification_uri(self, input: impl Into<String>) -> Self
The URI of the verification page that takes the userCode
to authorize the device.
Sourcepub fn set_verification_uri(self, input: Option<String>) -> Self
pub fn set_verification_uri(self, input: Option<String>) -> Self
The URI of the verification page that takes the userCode
to authorize the device.
Sourcepub fn get_verification_uri(&self) -> &Option<String>
pub fn get_verification_uri(&self) -> &Option<String>
The URI of the verification page that takes the userCode
to authorize the device.
Sourcepub fn verification_uri_complete(self, input: impl Into<String>) -> Self
pub fn verification_uri_complete(self, input: impl Into<String>) -> Self
An alternate URL that the client can use to automatically launch a browser. This process skips the manual step in which the user visits the verification page and enters their code.
Sourcepub fn set_verification_uri_complete(self, input: Option<String>) -> Self
pub fn set_verification_uri_complete(self, input: Option<String>) -> Self
An alternate URL that the client can use to automatically launch a browser. This process skips the manual step in which the user visits the verification page and enters their code.
Sourcepub fn get_verification_uri_complete(&self) -> &Option<String>
pub fn get_verification_uri_complete(&self) -> &Option<String>
An alternate URL that the client can use to automatically launch a browser. This process skips the manual step in which the user visits the verification page and enters their code.
Sourcepub fn expires_in(self, input: i32) -> Self
pub fn expires_in(self, input: i32) -> Self
Indicates the number of seconds in which the verification code will become invalid.
Sourcepub fn set_expires_in(self, input: Option<i32>) -> Self
pub fn set_expires_in(self, input: Option<i32>) -> Self
Indicates the number of seconds in which the verification code will become invalid.
Sourcepub fn get_expires_in(&self) -> &Option<i32>
pub fn get_expires_in(&self) -> &Option<i32>
Indicates the number of seconds in which the verification code will become invalid.
Sourcepub fn interval(self, input: i32) -> Self
pub fn interval(self, input: i32) -> Self
Indicates the number of seconds the client must wait between attempts when polling for a session.
Sourcepub fn set_interval(self, input: Option<i32>) -> Self
pub fn set_interval(self, input: Option<i32>) -> Self
Indicates the number of seconds the client must wait between attempts when polling for a session.
Sourcepub fn get_interval(&self) -> &Option<i32>
pub fn get_interval(&self) -> &Option<i32>
Indicates the number of seconds the client must wait between attempts when polling for a session.
Sourcepub fn build(self) -> StartDeviceAuthorizationOutput
pub fn build(self) -> StartDeviceAuthorizationOutput
Consumes the builder and constructs a StartDeviceAuthorizationOutput
.
Trait Implementations§
Source§impl Clone for StartDeviceAuthorizationOutputBuilder
impl Clone for StartDeviceAuthorizationOutputBuilder
Source§fn clone(&self) -> StartDeviceAuthorizationOutputBuilder
fn clone(&self) -> StartDeviceAuthorizationOutputBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for StartDeviceAuthorizationOutputBuilder
impl Default for StartDeviceAuthorizationOutputBuilder
Source§fn default() -> StartDeviceAuthorizationOutputBuilder
fn default() -> StartDeviceAuthorizationOutputBuilder
Source§impl PartialEq for StartDeviceAuthorizationOutputBuilder
impl PartialEq for StartDeviceAuthorizationOutputBuilder
Source§fn eq(&self, other: &StartDeviceAuthorizationOutputBuilder) -> bool
fn eq(&self, other: &StartDeviceAuthorizationOutputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.