/** * 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 #include namespace Aws { namespace RolesAnywhere { namespace Model { /** */ class CreateTrustAnchorRequest : public RolesAnywhereRequest { public: AWS_ROLESANYWHERE_API CreateTrustAnchorRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateTrustAnchor"; } AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override; /** *

Specifies whether the trust anchor is enabled.

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

Specifies whether the trust anchor is enabled.

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

Specifies whether the trust anchor is enabled.

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

Specifies whether the trust anchor is enabled.

*/ inline CreateTrustAnchorRequest& 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 CreateTrustAnchorRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the trust anchor.

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

The name of the trust anchor.

*/ inline CreateTrustAnchorRequest& 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 CreateTrustAnchorRequest& WithNotificationSettings(const Aws::Vector& value) { SetNotificationSettings(value); return *this;} /** *

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

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

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

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

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

*/ inline CreateTrustAnchorRequest& AddNotificationSettings(NotificationSetting&& 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 CreateTrustAnchorRequest& WithSource(const Source& value) { SetSource(value); return *this;} /** *

The trust anchor type and its related certificate data.

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

The tags to attach to the trust anchor.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags to attach to the trust anchor.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags to attach to the trust anchor.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags to attach to the trust anchor.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags to attach to the trust anchor.

*/ inline CreateTrustAnchorRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags to attach to the trust anchor.

*/ inline CreateTrustAnchorRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags to attach to the trust anchor.

*/ inline CreateTrustAnchorRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags to attach to the trust anchor.

*/ inline CreateTrustAnchorRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: 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::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace RolesAnywhere } // namespace Aws