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

The state of the trust anchor after a read or write operation.

See * Also:

AWS * API Reference

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

The ISO-8601 timestamp when the trust anchor was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The ISO-8601 timestamp when the trust anchor was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The ISO-8601 timestamp when the trust anchor was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The ISO-8601 timestamp when the trust anchor was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The ISO-8601 timestamp when the trust anchor was created.

*/ inline TrustAnchorDetail& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The ISO-8601 timestamp when the trust anchor was created.

*/ inline TrustAnchorDetail& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

Indicates whether the trust anchor is enabled.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

Indicates whether the trust anchor is enabled.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

Indicates whether the trust anchor is enabled.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

Indicates whether the trust anchor is enabled.

*/ inline TrustAnchorDetail& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

The name of the trust anchor.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the trust anchor.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the trust anchor.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the trust anchor.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the trust anchor.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the trust anchor.

*/ inline TrustAnchorDetail& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the trust anchor.

*/ inline TrustAnchorDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the trust anchor.

*/ inline TrustAnchorDetail& WithName(const char* value) { SetName(value); return *this;} /** *

A list of notification settings to be associated to the trust anchor.

*/ inline const Aws::Vector& GetNotificationSettings() const{ return m_notificationSettings; } /** *

A list of notification settings to be associated to the trust anchor.

*/ inline bool NotificationSettingsHasBeenSet() const { return m_notificationSettingsHasBeenSet; } /** *

A list of notification settings to be associated to the trust anchor.

*/ inline void SetNotificationSettings(const Aws::Vector& value) { m_notificationSettingsHasBeenSet = true; m_notificationSettings = value; } /** *

A list of notification settings to be associated to the trust anchor.

*/ inline void SetNotificationSettings(Aws::Vector&& value) { m_notificationSettingsHasBeenSet = true; m_notificationSettings = std::move(value); } /** *

A list of notification settings to be associated to the trust anchor.

*/ inline TrustAnchorDetail& WithNotificationSettings(const Aws::Vector& value) { SetNotificationSettings(value); return *this;} /** *

A list of notification settings to be associated to the trust anchor.

*/ inline TrustAnchorDetail& WithNotificationSettings(Aws::Vector&& value) { SetNotificationSettings(std::move(value)); return *this;} /** *

A list of notification settings to be associated to the trust anchor.

*/ inline TrustAnchorDetail& AddNotificationSettings(const NotificationSettingDetail& value) { m_notificationSettingsHasBeenSet = true; m_notificationSettings.push_back(value); return *this; } /** *

A list of notification settings to be associated to the trust anchor.

*/ inline TrustAnchorDetail& AddNotificationSettings(NotificationSettingDetail&& value) { m_notificationSettingsHasBeenSet = true; m_notificationSettings.push_back(std::move(value)); return *this; } /** *

The trust anchor type and its related certificate data.

*/ inline const Source& GetSource() const{ return m_source; } /** *

The trust anchor type and its related certificate data.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

The trust anchor type and its related certificate data.

*/ inline void SetSource(const Source& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

The trust anchor type and its related certificate data.

*/ inline void SetSource(Source&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

The trust anchor type and its related certificate data.

*/ inline TrustAnchorDetail& WithSource(const Source& value) { SetSource(value); return *this;} /** *

The trust anchor type and its related certificate data.

*/ inline TrustAnchorDetail& WithSource(Source&& value) { SetSource(std::move(value)); return *this;} /** *

The ARN of the trust anchor.

*/ inline const Aws::String& GetTrustAnchorArn() const{ return m_trustAnchorArn; } /** *

The ARN of the trust anchor.

*/ inline bool TrustAnchorArnHasBeenSet() const { return m_trustAnchorArnHasBeenSet; } /** *

The ARN of the trust anchor.

*/ inline void SetTrustAnchorArn(const Aws::String& value) { m_trustAnchorArnHasBeenSet = true; m_trustAnchorArn = value; } /** *

The ARN of the trust anchor.

*/ inline void SetTrustAnchorArn(Aws::String&& value) { m_trustAnchorArnHasBeenSet = true; m_trustAnchorArn = std::move(value); } /** *

The ARN of the trust anchor.

*/ inline void SetTrustAnchorArn(const char* value) { m_trustAnchorArnHasBeenSet = true; m_trustAnchorArn.assign(value); } /** *

The ARN of the trust anchor.

*/ inline TrustAnchorDetail& WithTrustAnchorArn(const Aws::String& value) { SetTrustAnchorArn(value); return *this;} /** *

The ARN of the trust anchor.

*/ inline TrustAnchorDetail& WithTrustAnchorArn(Aws::String&& value) { SetTrustAnchorArn(std::move(value)); return *this;} /** *

The ARN of the trust anchor.

*/ inline TrustAnchorDetail& WithTrustAnchorArn(const char* value) { SetTrustAnchorArn(value); return *this;} /** *

The unique identifier of the trust anchor.

*/ inline const Aws::String& GetTrustAnchorId() const{ return m_trustAnchorId; } /** *

The unique identifier of the trust anchor.

*/ inline bool TrustAnchorIdHasBeenSet() const { return m_trustAnchorIdHasBeenSet; } /** *

The unique identifier of the trust anchor.

*/ inline void SetTrustAnchorId(const Aws::String& value) { m_trustAnchorIdHasBeenSet = true; m_trustAnchorId = value; } /** *

The unique identifier of the trust anchor.

*/ inline void SetTrustAnchorId(Aws::String&& value) { m_trustAnchorIdHasBeenSet = true; m_trustAnchorId = std::move(value); } /** *

The unique identifier of the trust anchor.

*/ inline void SetTrustAnchorId(const char* value) { m_trustAnchorIdHasBeenSet = true; m_trustAnchorId.assign(value); } /** *

The unique identifier of the trust anchor.

*/ inline TrustAnchorDetail& WithTrustAnchorId(const Aws::String& value) { SetTrustAnchorId(value); return *this;} /** *

The unique identifier of the trust anchor.

*/ inline TrustAnchorDetail& WithTrustAnchorId(Aws::String&& value) { SetTrustAnchorId(std::move(value)); return *this;} /** *

The unique identifier of the trust anchor.

*/ inline TrustAnchorDetail& WithTrustAnchorId(const char* value) { SetTrustAnchorId(value); return *this;} /** *

The ISO-8601 timestamp when the trust anchor was last updated.

*/ inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } /** *

The ISO-8601 timestamp when the trust anchor was last updated.

*/ inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } /** *

The ISO-8601 timestamp when the trust anchor was last updated.

*/ inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; } /** *

The ISO-8601 timestamp when the trust anchor was last updated.

*/ inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); } /** *

The ISO-8601 timestamp when the trust anchor was last updated.

*/ inline TrustAnchorDetail& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} /** *

The ISO-8601 timestamp when the trust anchor was last updated.

*/ inline TrustAnchorDetail& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} private: Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; bool m_enabled; bool m_enabledHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_notificationSettings; bool m_notificationSettingsHasBeenSet = false; Source m_source; bool m_sourceHasBeenSet = false; Aws::String m_trustAnchorArn; bool m_trustAnchorArnHasBeenSet = false; Aws::String m_trustAnchorId; bool m_trustAnchorIdHasBeenSet = false; Aws::Utils::DateTime m_updatedAt; bool m_updatedAtHasBeenSet = false; }; } // namespace Model } // namespace RolesAnywhere } // namespace Aws