/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace RolesAnywhere { namespace Model { /** */ class UpdateTrustAnchorRequest : public RolesAnywhereRequest { public: AWS_ROLESANYWHERE_API UpdateTrustAnchorRequest(); // 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 "UpdateTrustAnchor"; } AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override; /** *

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

The name of the trust anchor.

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

The name of the trust anchor.

*/ inline UpdateTrustAnchorRequest& WithName(const char* value) { SetName(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 UpdateTrustAnchorRequest& WithSource(const Source& value) { SetSource(value); return *this;} /** *

The trust anchor type and its related certificate data.

*/ inline UpdateTrustAnchorRequest& WithSource(Source&& value) { SetSource(std::move(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 UpdateTrustAnchorRequest& WithTrustAnchorId(const Aws::String& value) { SetTrustAnchorId(value); return *this;} /** *

The unique identifier of the trust anchor.

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

The unique identifier of the trust anchor.

*/ inline UpdateTrustAnchorRequest& WithTrustAnchorId(const char* value) { SetTrustAnchorId(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Source m_source; bool m_sourceHasBeenSet = false; Aws::String m_trustAnchorId; bool m_trustAnchorIdHasBeenSet = false; }; } // namespace Model } // namespace RolesAnywhere } // namespace Aws