/** * 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 IoT { namespace Model { /** *

Role alias description.

See Also:

AWS * API Reference

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

The role alias.

*/ inline const Aws::String& GetRoleAlias() const{ return m_roleAlias; } /** *

The role alias.

*/ inline bool RoleAliasHasBeenSet() const { return m_roleAliasHasBeenSet; } /** *

The role alias.

*/ inline void SetRoleAlias(const Aws::String& value) { m_roleAliasHasBeenSet = true; m_roleAlias = value; } /** *

The role alias.

*/ inline void SetRoleAlias(Aws::String&& value) { m_roleAliasHasBeenSet = true; m_roleAlias = std::move(value); } /** *

The role alias.

*/ inline void SetRoleAlias(const char* value) { m_roleAliasHasBeenSet = true; m_roleAlias.assign(value); } /** *

The role alias.

*/ inline RoleAliasDescription& WithRoleAlias(const Aws::String& value) { SetRoleAlias(value); return *this;} /** *

The role alias.

*/ inline RoleAliasDescription& WithRoleAlias(Aws::String&& value) { SetRoleAlias(std::move(value)); return *this;} /** *

The role alias.

*/ inline RoleAliasDescription& WithRoleAlias(const char* value) { SetRoleAlias(value); return *this;} /** *

The ARN of the role alias.

*/ inline const Aws::String& GetRoleAliasArn() const{ return m_roleAliasArn; } /** *

The ARN of the role alias.

*/ inline bool RoleAliasArnHasBeenSet() const { return m_roleAliasArnHasBeenSet; } /** *

The ARN of the role alias.

*/ inline void SetRoleAliasArn(const Aws::String& value) { m_roleAliasArnHasBeenSet = true; m_roleAliasArn = value; } /** *

The ARN of the role alias.

*/ inline void SetRoleAliasArn(Aws::String&& value) { m_roleAliasArnHasBeenSet = true; m_roleAliasArn = std::move(value); } /** *

The ARN of the role alias.

*/ inline void SetRoleAliasArn(const char* value) { m_roleAliasArnHasBeenSet = true; m_roleAliasArn.assign(value); } /** *

The ARN of the role alias.

*/ inline RoleAliasDescription& WithRoleAliasArn(const Aws::String& value) { SetRoleAliasArn(value); return *this;} /** *

The ARN of the role alias.

*/ inline RoleAliasDescription& WithRoleAliasArn(Aws::String&& value) { SetRoleAliasArn(std::move(value)); return *this;} /** *

The ARN of the role alias.

*/ inline RoleAliasDescription& WithRoleAliasArn(const char* value) { SetRoleAliasArn(value); return *this;} /** *

The role ARN.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The role ARN.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The role ARN.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The role ARN.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The role ARN.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The role ARN.

*/ inline RoleAliasDescription& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The role ARN.

*/ inline RoleAliasDescription& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The role ARN.

*/ inline RoleAliasDescription& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The role alias owner.

*/ inline const Aws::String& GetOwner() const{ return m_owner; } /** *

The role alias owner.

*/ inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; } /** *

The role alias owner.

*/ inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; } /** *

The role alias owner.

*/ inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); } /** *

The role alias owner.

*/ inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); } /** *

The role alias owner.

*/ inline RoleAliasDescription& WithOwner(const Aws::String& value) { SetOwner(value); return *this;} /** *

The role alias owner.

*/ inline RoleAliasDescription& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;} /** *

The role alias owner.

*/ inline RoleAliasDescription& WithOwner(const char* value) { SetOwner(value); return *this;} /** *

The number of seconds for which the credential is valid.

*/ inline int GetCredentialDurationSeconds() const{ return m_credentialDurationSeconds; } /** *

The number of seconds for which the credential is valid.

*/ inline bool CredentialDurationSecondsHasBeenSet() const { return m_credentialDurationSecondsHasBeenSet; } /** *

The number of seconds for which the credential is valid.

*/ inline void SetCredentialDurationSeconds(int value) { m_credentialDurationSecondsHasBeenSet = true; m_credentialDurationSeconds = value; } /** *

The number of seconds for which the credential is valid.

*/ inline RoleAliasDescription& WithCredentialDurationSeconds(int value) { SetCredentialDurationSeconds(value); return *this;} /** *

The UNIX timestamp of when the role alias was created.

*/ inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } /** *

The UNIX timestamp of when the role alias was created.

*/ inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; } /** *

The UNIX timestamp of when the role alias was created.

*/ inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; } /** *

The UNIX timestamp of when the role alias was created.

*/ inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); } /** *

The UNIX timestamp of when the role alias was created.

*/ inline RoleAliasDescription& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *

The UNIX timestamp of when the role alias was created.

*/ inline RoleAliasDescription& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} /** *

The UNIX timestamp of when the role alias was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; } /** *

The UNIX timestamp of when the role alias was last modified.

*/ inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; } /** *

The UNIX timestamp of when the role alias was last modified.

*/ inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; } /** *

The UNIX timestamp of when the role alias was last modified.

*/ inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); } /** *

The UNIX timestamp of when the role alias was last modified.

*/ inline RoleAliasDescription& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;} /** *

The UNIX timestamp of when the role alias was last modified.

*/ inline RoleAliasDescription& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;} private: Aws::String m_roleAlias; bool m_roleAliasHasBeenSet = false; Aws::String m_roleAliasArn; bool m_roleAliasArnHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::String m_owner; bool m_ownerHasBeenSet = false; int m_credentialDurationSeconds; bool m_credentialDurationSecondsHasBeenSet = false; Aws::Utils::DateTime m_creationDate; bool m_creationDateHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedDate; bool m_lastModifiedDateHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws