/** * 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 UpdateFieldLevelEncryptionProfile2020_05_31Request : public CloudFrontRequest { public: AWS_CLOUDFRONT_API UpdateFieldLevelEncryptionProfile2020_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 "UpdateFieldLevelEncryptionProfile"; } AWS_CLOUDFRONT_API Aws::String SerializePayload() const override; AWS_CLOUDFRONT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Request to update a field-level encryption profile.

*/ inline const FieldLevelEncryptionProfileConfig& GetFieldLevelEncryptionProfileConfig() const{ return m_fieldLevelEncryptionProfileConfig; } /** *

Request to update a field-level encryption profile.

*/ inline bool FieldLevelEncryptionProfileConfigHasBeenSet() const { return m_fieldLevelEncryptionProfileConfigHasBeenSet; } /** *

Request to update a field-level encryption profile.

*/ inline void SetFieldLevelEncryptionProfileConfig(const FieldLevelEncryptionProfileConfig& value) { m_fieldLevelEncryptionProfileConfigHasBeenSet = true; m_fieldLevelEncryptionProfileConfig = value; } /** *

Request to update a field-level encryption profile.

*/ inline void SetFieldLevelEncryptionProfileConfig(FieldLevelEncryptionProfileConfig&& value) { m_fieldLevelEncryptionProfileConfigHasBeenSet = true; m_fieldLevelEncryptionProfileConfig = std::move(value); } /** *

Request to update a field-level encryption profile.

*/ inline UpdateFieldLevelEncryptionProfile2020_05_31Request& WithFieldLevelEncryptionProfileConfig(const FieldLevelEncryptionProfileConfig& value) { SetFieldLevelEncryptionProfileConfig(value); return *this;} /** *

Request to update a field-level encryption profile.

*/ inline UpdateFieldLevelEncryptionProfile2020_05_31Request& WithFieldLevelEncryptionProfileConfig(FieldLevelEncryptionProfileConfig&& value) { SetFieldLevelEncryptionProfileConfig(std::move(value)); return *this;} /** *

The ID of the field-level encryption profile request.

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

The ID of the field-level encryption profile request.

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

The ID of the field-level encryption profile request.

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

The ID of the field-level encryption profile request.

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

The ID of the field-level encryption profile request.

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

The ID of the field-level encryption profile request.

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

The ID of the field-level encryption profile request.

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

The ID of the field-level encryption profile request.

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

The value of the ETag header that you received when retrieving * the profile identity 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 profile identity to update. For example: E2QWRUHAPOMQZL.

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

The value of the ETag header that you received when retrieving * the profile identity 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 profile identity 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 profile identity 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 profile identity to update. For example: E2QWRUHAPOMQZL.

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

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

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

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

*/ inline UpdateFieldLevelEncryptionProfile2020_05_31Request& WithIfMatch(const char* value) { SetIfMatch(value); return *this;} private: FieldLevelEncryptionProfileConfig m_fieldLevelEncryptionProfileConfig; bool m_fieldLevelEncryptionProfileConfigHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_ifMatch; bool m_ifMatchHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws