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

An origin access control.

*/ inline const OriginAccessControlConfig& GetOriginAccessControlConfig() const{ return m_originAccessControlConfig; } /** *

An origin access control.

*/ inline bool OriginAccessControlConfigHasBeenSet() const { return m_originAccessControlConfigHasBeenSet; } /** *

An origin access control.

*/ inline void SetOriginAccessControlConfig(const OriginAccessControlConfig& value) { m_originAccessControlConfigHasBeenSet = true; m_originAccessControlConfig = value; } /** *

An origin access control.

*/ inline void SetOriginAccessControlConfig(OriginAccessControlConfig&& value) { m_originAccessControlConfigHasBeenSet = true; m_originAccessControlConfig = std::move(value); } /** *

An origin access control.

*/ inline UpdateOriginAccessControl2020_05_31Request& WithOriginAccessControlConfig(const OriginAccessControlConfig& value) { SetOriginAccessControlConfig(value); return *this;} /** *

An origin access control.

*/ inline UpdateOriginAccessControl2020_05_31Request& WithOriginAccessControlConfig(OriginAccessControlConfig&& value) { SetOriginAccessControlConfig(std::move(value)); return *this;} /** *

The unique identifier of the origin access control that you are updating.

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

The unique identifier of the origin access control that you are updating.

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

The unique identifier of the origin access control that you are updating.

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

The unique identifier of the origin access control that you are updating.

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

The unique identifier of the origin access control that you are updating.

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

The unique identifier of the origin access control that you are updating.

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

The unique identifier of the origin access control that you are updating.

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

The unique identifier of the origin access control that you are updating.

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

The current version (ETag value) of the origin access control * that you are updating.

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

The current version (ETag value) of the origin access control * that you are updating.

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

The current version (ETag value) of the origin access control * that you are updating.

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

The current version (ETag value) of the origin access control * that you are updating.

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

The current version (ETag value) of the origin access control * that you are updating.

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

The current version (ETag value) of the origin access control * that you are updating.

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

The current version (ETag value) of the origin access control * that you are updating.

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

The current version (ETag value) of the origin access control * that you are updating.

*/ inline UpdateOriginAccessControl2020_05_31Request& WithIfMatch(const char* value) { SetIfMatch(value); return *this;} private: OriginAccessControlConfig m_originAccessControlConfig; bool m_originAccessControlConfigHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_ifMatch; bool m_ifMatchHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws