/** * 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 CloudFront { namespace Model { /** */ class UpdatePublicKey2020_05_31Request : public CloudFrontRequest { public: AWS_CLOUDFRONT_API UpdatePublicKey2020_05_31Request(); // 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 "UpdatePublicKey"; } AWS_CLOUDFRONT_API Aws::String SerializePayload() const override; AWS_CLOUDFRONT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A public key configuration.

*/ inline const PublicKeyConfig& GetPublicKeyConfig() const{ return m_publicKeyConfig; } /** *

A public key configuration.

*/ inline bool PublicKeyConfigHasBeenSet() const { return m_publicKeyConfigHasBeenSet; } /** *

A public key configuration.

*/ inline void SetPublicKeyConfig(const PublicKeyConfig& value) { m_publicKeyConfigHasBeenSet = true; m_publicKeyConfig = value; } /** *

A public key configuration.

*/ inline void SetPublicKeyConfig(PublicKeyConfig&& value) { m_publicKeyConfigHasBeenSet = true; m_publicKeyConfig = std::move(value); } /** *

A public key configuration.

*/ inline UpdatePublicKey2020_05_31Request& WithPublicKeyConfig(const PublicKeyConfig& value) { SetPublicKeyConfig(value); return *this;} /** *

A public key configuration.

*/ inline UpdatePublicKey2020_05_31Request& WithPublicKeyConfig(PublicKeyConfig&& value) { SetPublicKeyConfig(std::move(value)); return *this;} /** *

The identifier of the public key that you are updating.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The identifier of the public key that you are updating.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The identifier of the public key that you are updating.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The identifier of the public key that you are updating.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The identifier of the public key that you are updating.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The identifier of the public key that you are updating.

*/ inline UpdatePublicKey2020_05_31Request& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The identifier of the public key that you are updating.

*/ inline UpdatePublicKey2020_05_31Request& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The identifier of the public key that you are updating.

*/ inline UpdatePublicKey2020_05_31Request& WithId(const char* value) { SetId(value); return *this;} /** *

The value of the ETag header that you received when retrieving * the public key to update. For example: E2QWRUHAPOMQZL.

*/ inline const Aws::String& GetIfMatch() const{ return m_ifMatch; } /** *

The value of the ETag header that you received when retrieving * the public key to update. For example: E2QWRUHAPOMQZL.

*/ inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; } /** *

The value of the ETag header that you received when retrieving * the public key to update. For example: E2QWRUHAPOMQZL.

*/ inline void SetIfMatch(const Aws::String& value) { m_ifMatchHasBeenSet = true; m_ifMatch = value; } /** *

The value of the ETag header that you received when retrieving * the public key to update. For example: E2QWRUHAPOMQZL.

*/ inline void SetIfMatch(Aws::String&& value) { m_ifMatchHasBeenSet = true; m_ifMatch = std::move(value); } /** *

The value of the ETag header that you received when retrieving * the public key to update. For example: E2QWRUHAPOMQZL.

*/ inline void SetIfMatch(const char* value) { m_ifMatchHasBeenSet = true; m_ifMatch.assign(value); } /** *

The value of the ETag header that you received when retrieving * the public key to update. For example: E2QWRUHAPOMQZL.

*/ inline UpdatePublicKey2020_05_31Request& WithIfMatch(const Aws::String& value) { SetIfMatch(value); return *this;} /** *

The value of the ETag header that you received when retrieving * the public key to update. For example: E2QWRUHAPOMQZL.

*/ inline UpdatePublicKey2020_05_31Request& WithIfMatch(Aws::String&& value) { SetIfMatch(std::move(value)); return *this;} /** *

The value of the ETag header that you received when retrieving * the public key to update. For example: E2QWRUHAPOMQZL.

*/ inline UpdatePublicKey2020_05_31Request& WithIfMatch(const char* value) { SetIfMatch(value); return *this;} private: PublicKeyConfig m_publicKeyConfig; bool m_publicKeyConfigHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_ifMatch; bool m_ifMatchHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws