/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SSOOIDC { namespace Model { class StartDeviceAuthorizationResult { public: AWS_SSOOIDC_API StartDeviceAuthorizationResult(); AWS_SSOOIDC_API StartDeviceAuthorizationResult(const Aws::AmazonWebServiceResult& result); AWS_SSOOIDC_API StartDeviceAuthorizationResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The short-lived code that is used by the device when polling for a session * token.

*/ inline const Aws::String& GetDeviceCode() const{ return m_deviceCode; } /** *

The short-lived code that is used by the device when polling for a session * token.

*/ inline void SetDeviceCode(const Aws::String& value) { m_deviceCode = value; } /** *

The short-lived code that is used by the device when polling for a session * token.

*/ inline void SetDeviceCode(Aws::String&& value) { m_deviceCode = std::move(value); } /** *

The short-lived code that is used by the device when polling for a session * token.

*/ inline void SetDeviceCode(const char* value) { m_deviceCode.assign(value); } /** *

The short-lived code that is used by the device when polling for a session * token.

*/ inline StartDeviceAuthorizationResult& WithDeviceCode(const Aws::String& value) { SetDeviceCode(value); return *this;} /** *

The short-lived code that is used by the device when polling for a session * token.

*/ inline StartDeviceAuthorizationResult& WithDeviceCode(Aws::String&& value) { SetDeviceCode(std::move(value)); return *this;} /** *

The short-lived code that is used by the device when polling for a session * token.

*/ inline StartDeviceAuthorizationResult& WithDeviceCode(const char* value) { SetDeviceCode(value); return *this;} /** *

A one-time user verification code. This is needed to authorize an in-use * device.

*/ inline const Aws::String& GetUserCode() const{ return m_userCode; } /** *

A one-time user verification code. This is needed to authorize an in-use * device.

*/ inline void SetUserCode(const Aws::String& value) { m_userCode = value; } /** *

A one-time user verification code. This is needed to authorize an in-use * device.

*/ inline void SetUserCode(Aws::String&& value) { m_userCode = std::move(value); } /** *

A one-time user verification code. This is needed to authorize an in-use * device.

*/ inline void SetUserCode(const char* value) { m_userCode.assign(value); } /** *

A one-time user verification code. This is needed to authorize an in-use * device.

*/ inline StartDeviceAuthorizationResult& WithUserCode(const Aws::String& value) { SetUserCode(value); return *this;} /** *

A one-time user verification code. This is needed to authorize an in-use * device.

*/ inline StartDeviceAuthorizationResult& WithUserCode(Aws::String&& value) { SetUserCode(std::move(value)); return *this;} /** *

A one-time user verification code. This is needed to authorize an in-use * device.

*/ inline StartDeviceAuthorizationResult& WithUserCode(const char* value) { SetUserCode(value); return *this;} /** *

The URI of the verification page that takes the userCode to * authorize the device.

*/ inline const Aws::String& GetVerificationUri() const{ return m_verificationUri; } /** *

The URI of the verification page that takes the userCode to * authorize the device.

*/ inline void SetVerificationUri(const Aws::String& value) { m_verificationUri = value; } /** *

The URI of the verification page that takes the userCode to * authorize the device.

*/ inline void SetVerificationUri(Aws::String&& value) { m_verificationUri = std::move(value); } /** *

The URI of the verification page that takes the userCode to * authorize the device.

*/ inline void SetVerificationUri(const char* value) { m_verificationUri.assign(value); } /** *

The URI of the verification page that takes the userCode to * authorize the device.

*/ inline StartDeviceAuthorizationResult& WithVerificationUri(const Aws::String& value) { SetVerificationUri(value); return *this;} /** *

The URI of the verification page that takes the userCode to * authorize the device.

*/ inline StartDeviceAuthorizationResult& WithVerificationUri(Aws::String&& value) { SetVerificationUri(std::move(value)); return *this;} /** *

The URI of the verification page that takes the userCode to * authorize the device.

*/ inline StartDeviceAuthorizationResult& WithVerificationUri(const char* value) { SetVerificationUri(value); return *this;} /** *

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.

*/ inline const Aws::String& GetVerificationUriComplete() const{ return m_verificationUriComplete; } /** *

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.

*/ inline void SetVerificationUriComplete(const Aws::String& value) { m_verificationUriComplete = value; } /** *

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.

*/ inline void SetVerificationUriComplete(Aws::String&& value) { m_verificationUriComplete = std::move(value); } /** *

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.

*/ inline void SetVerificationUriComplete(const char* value) { m_verificationUriComplete.assign(value); } /** *

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.

*/ inline StartDeviceAuthorizationResult& WithVerificationUriComplete(const Aws::String& value) { SetVerificationUriComplete(value); return *this;} /** *

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.

*/ inline StartDeviceAuthorizationResult& WithVerificationUriComplete(Aws::String&& value) { SetVerificationUriComplete(std::move(value)); return *this;} /** *

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.

*/ inline StartDeviceAuthorizationResult& WithVerificationUriComplete(const char* value) { SetVerificationUriComplete(value); return *this;} /** *

Indicates the number of seconds in which the verification code will become * invalid.

*/ inline int GetExpiresIn() const{ return m_expiresIn; } /** *

Indicates the number of seconds in which the verification code will become * invalid.

*/ inline void SetExpiresIn(int value) { m_expiresIn = value; } /** *

Indicates the number of seconds in which the verification code will become * invalid.

*/ inline StartDeviceAuthorizationResult& WithExpiresIn(int value) { SetExpiresIn(value); return *this;} /** *

Indicates the number of seconds the client must wait between attempts when * polling for a session.

*/ inline int GetInterval() const{ return m_interval; } /** *

Indicates the number of seconds the client must wait between attempts when * polling for a session.

*/ inline void SetInterval(int value) { m_interval = value; } /** *

Indicates the number of seconds the client must wait between attempts when * polling for a session.

*/ inline StartDeviceAuthorizationResult& WithInterval(int value) { SetInterval(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline StartDeviceAuthorizationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline StartDeviceAuthorizationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline StartDeviceAuthorizationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_deviceCode; Aws::String m_userCode; Aws::String m_verificationUri; Aws::String m_verificationUriComplete; int m_expiresIn; int m_interval; Aws::String m_requestId; }; } // namespace Model } // namespace SSOOIDC } // namespace Aws