/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace LicenseManager { namespace Model { /** *

Describes a token.

See Also:

AWS * API Reference

*/ class TokenData { public: AWS_LICENSEMANAGER_API TokenData(); AWS_LICENSEMANAGER_API TokenData(Aws::Utils::Json::JsonView jsonValue); AWS_LICENSEMANAGER_API TokenData& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Token ID.

*/ inline const Aws::String& GetTokenId() const{ return m_tokenId; } /** *

Token ID.

*/ inline bool TokenIdHasBeenSet() const { return m_tokenIdHasBeenSet; } /** *

Token ID.

*/ inline void SetTokenId(const Aws::String& value) { m_tokenIdHasBeenSet = true; m_tokenId = value; } /** *

Token ID.

*/ inline void SetTokenId(Aws::String&& value) { m_tokenIdHasBeenSet = true; m_tokenId = std::move(value); } /** *

Token ID.

*/ inline void SetTokenId(const char* value) { m_tokenIdHasBeenSet = true; m_tokenId.assign(value); } /** *

Token ID.

*/ inline TokenData& WithTokenId(const Aws::String& value) { SetTokenId(value); return *this;} /** *

Token ID.

*/ inline TokenData& WithTokenId(Aws::String&& value) { SetTokenId(std::move(value)); return *this;} /** *

Token ID.

*/ inline TokenData& WithTokenId(const char* value) { SetTokenId(value); return *this;} /** *

Type of token generated. The supported value is * REFRESH_TOKEN.

*/ inline const Aws::String& GetTokenType() const{ return m_tokenType; } /** *

Type of token generated. The supported value is * REFRESH_TOKEN.

*/ inline bool TokenTypeHasBeenSet() const { return m_tokenTypeHasBeenSet; } /** *

Type of token generated. The supported value is * REFRESH_TOKEN.

*/ inline void SetTokenType(const Aws::String& value) { m_tokenTypeHasBeenSet = true; m_tokenType = value; } /** *

Type of token generated. The supported value is * REFRESH_TOKEN.

*/ inline void SetTokenType(Aws::String&& value) { m_tokenTypeHasBeenSet = true; m_tokenType = std::move(value); } /** *

Type of token generated. The supported value is * REFRESH_TOKEN.

*/ inline void SetTokenType(const char* value) { m_tokenTypeHasBeenSet = true; m_tokenType.assign(value); } /** *

Type of token generated. The supported value is * REFRESH_TOKEN.

*/ inline TokenData& WithTokenType(const Aws::String& value) { SetTokenType(value); return *this;} /** *

Type of token generated. The supported value is * REFRESH_TOKEN.

*/ inline TokenData& WithTokenType(Aws::String&& value) { SetTokenType(std::move(value)); return *this;} /** *

Type of token generated. The supported value is * REFRESH_TOKEN.

*/ inline TokenData& WithTokenType(const char* value) { SetTokenType(value); return *this;} /** *

Amazon Resource Name (ARN) of the license.

*/ inline const Aws::String& GetLicenseArn() const{ return m_licenseArn; } /** *

Amazon Resource Name (ARN) of the license.

*/ inline bool LicenseArnHasBeenSet() const { return m_licenseArnHasBeenSet; } /** *

Amazon Resource Name (ARN) of the license.

*/ inline void SetLicenseArn(const Aws::String& value) { m_licenseArnHasBeenSet = true; m_licenseArn = value; } /** *

Amazon Resource Name (ARN) of the license.

*/ inline void SetLicenseArn(Aws::String&& value) { m_licenseArnHasBeenSet = true; m_licenseArn = std::move(value); } /** *

Amazon Resource Name (ARN) of the license.

*/ inline void SetLicenseArn(const char* value) { m_licenseArnHasBeenSet = true; m_licenseArn.assign(value); } /** *

Amazon Resource Name (ARN) of the license.

*/ inline TokenData& WithLicenseArn(const Aws::String& value) { SetLicenseArn(value); return *this;} /** *

Amazon Resource Name (ARN) of the license.

*/ inline TokenData& WithLicenseArn(Aws::String&& value) { SetLicenseArn(std::move(value)); return *this;} /** *

Amazon Resource Name (ARN) of the license.

*/ inline TokenData& WithLicenseArn(const char* value) { SetLicenseArn(value); return *this;} /** *

Token expiration time, in ISO8601-UTC format.

*/ inline const Aws::String& GetExpirationTime() const{ return m_expirationTime; } /** *

Token expiration time, in ISO8601-UTC format.

*/ inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; } /** *

Token expiration time, in ISO8601-UTC format.

*/ inline void SetExpirationTime(const Aws::String& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = value; } /** *

Token expiration time, in ISO8601-UTC format.

*/ inline void SetExpirationTime(Aws::String&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::move(value); } /** *

Token expiration time, in ISO8601-UTC format.

*/ inline void SetExpirationTime(const char* value) { m_expirationTimeHasBeenSet = true; m_expirationTime.assign(value); } /** *

Token expiration time, in ISO8601-UTC format.

*/ inline TokenData& WithExpirationTime(const Aws::String& value) { SetExpirationTime(value); return *this;} /** *

Token expiration time, in ISO8601-UTC format.

*/ inline TokenData& WithExpirationTime(Aws::String&& value) { SetExpirationTime(std::move(value)); return *this;} /** *

Token expiration time, in ISO8601-UTC format.

*/ inline TokenData& WithExpirationTime(const char* value) { SetExpirationTime(value); return *this;} /** *

Data specified by the caller.

*/ inline const Aws::Vector& GetTokenProperties() const{ return m_tokenProperties; } /** *

Data specified by the caller.

*/ inline bool TokenPropertiesHasBeenSet() const { return m_tokenPropertiesHasBeenSet; } /** *

Data specified by the caller.

*/ inline void SetTokenProperties(const Aws::Vector& value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties = value; } /** *

Data specified by the caller.

*/ inline void SetTokenProperties(Aws::Vector&& value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties = std::move(value); } /** *

Data specified by the caller.

*/ inline TokenData& WithTokenProperties(const Aws::Vector& value) { SetTokenProperties(value); return *this;} /** *

Data specified by the caller.

*/ inline TokenData& WithTokenProperties(Aws::Vector&& value) { SetTokenProperties(std::move(value)); return *this;} /** *

Data specified by the caller.

*/ inline TokenData& AddTokenProperties(const Aws::String& value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties.push_back(value); return *this; } /** *

Data specified by the caller.

*/ inline TokenData& AddTokenProperties(Aws::String&& value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties.push_back(std::move(value)); return *this; } /** *

Data specified by the caller.

*/ inline TokenData& AddTokenProperties(const char* value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties.push_back(value); return *this; } /** *

Amazon Resource Names (ARN) of the roles included in the token.

*/ inline const Aws::Vector& GetRoleArns() const{ return m_roleArns; } /** *

Amazon Resource Names (ARN) of the roles included in the token.

*/ inline bool RoleArnsHasBeenSet() const { return m_roleArnsHasBeenSet; } /** *

Amazon Resource Names (ARN) of the roles included in the token.

*/ inline void SetRoleArns(const Aws::Vector& value) { m_roleArnsHasBeenSet = true; m_roleArns = value; } /** *

Amazon Resource Names (ARN) of the roles included in the token.

*/ inline void SetRoleArns(Aws::Vector&& value) { m_roleArnsHasBeenSet = true; m_roleArns = std::move(value); } /** *

Amazon Resource Names (ARN) of the roles included in the token.

*/ inline TokenData& WithRoleArns(const Aws::Vector& value) { SetRoleArns(value); return *this;} /** *

Amazon Resource Names (ARN) of the roles included in the token.

*/ inline TokenData& WithRoleArns(Aws::Vector&& value) { SetRoleArns(std::move(value)); return *this;} /** *

Amazon Resource Names (ARN) of the roles included in the token.

*/ inline TokenData& AddRoleArns(const Aws::String& value) { m_roleArnsHasBeenSet = true; m_roleArns.push_back(value); return *this; } /** *

Amazon Resource Names (ARN) of the roles included in the token.

*/ inline TokenData& AddRoleArns(Aws::String&& value) { m_roleArnsHasBeenSet = true; m_roleArns.push_back(std::move(value)); return *this; } /** *

Amazon Resource Names (ARN) of the roles included in the token.

*/ inline TokenData& AddRoleArns(const char* value) { m_roleArnsHasBeenSet = true; m_roleArns.push_back(value); return *this; } /** *

Token status. The possible values are AVAILABLE and * DELETED.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

Token status. The possible values are AVAILABLE and * DELETED.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

Token status. The possible values are AVAILABLE and * DELETED.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

Token status. The possible values are AVAILABLE and * DELETED.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

Token status. The possible values are AVAILABLE and * DELETED.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

Token status. The possible values are AVAILABLE and * DELETED.

*/ inline TokenData& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

Token status. The possible values are AVAILABLE and * DELETED.

*/ inline TokenData& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

Token status. The possible values are AVAILABLE and * DELETED.

*/ inline TokenData& WithStatus(const char* value) { SetStatus(value); return *this;} private: Aws::String m_tokenId; bool m_tokenIdHasBeenSet = false; Aws::String m_tokenType; bool m_tokenTypeHasBeenSet = false; Aws::String m_licenseArn; bool m_licenseArnHasBeenSet = false; Aws::String m_expirationTime; bool m_expirationTimeHasBeenSet = false; Aws::Vector m_tokenProperties; bool m_tokenPropertiesHasBeenSet = false; Aws::Vector m_roleArns; bool m_roleArnsHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace LicenseManager } // namespace Aws