1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/glue/Glue_EXPORTS.h> 8 #include <aws/glue/GlueRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/glue/model/DataCatalogEncryptionSettings.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 namespace Glue 16 { 17 namespace Model 18 { 19 20 /** 21 */ 22 class AWS_GLUE_API PutDataCatalogEncryptionSettingsRequest : public GlueRequest 23 { 24 public: 25 PutDataCatalogEncryptionSettingsRequest(); 26 27 // Service request name is the Operation name which will send this request out, 28 // each operation should has unique request name, so that we can get operation's name from this request. 29 // Note: this is not true for response, multiple operations may have the same response name, 30 // so we can not get operation's name from response. GetServiceRequestName()31 inline virtual const char* GetServiceRequestName() const override { return "PutDataCatalogEncryptionSettings"; } 32 33 Aws::String SerializePayload() const override; 34 35 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 36 37 38 /** 39 * <p>The ID of the Data Catalog to set the security configuration for. If none is 40 * provided, the Amazon Web Services account ID is used by default.</p> 41 */ GetCatalogId()42 inline const Aws::String& GetCatalogId() const{ return m_catalogId; } 43 44 /** 45 * <p>The ID of the Data Catalog to set the security configuration for. If none is 46 * provided, the Amazon Web Services account ID is used by default.</p> 47 */ CatalogIdHasBeenSet()48 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; } 49 50 /** 51 * <p>The ID of the Data Catalog to set the security configuration for. If none is 52 * provided, the Amazon Web Services account ID is used by default.</p> 53 */ SetCatalogId(const Aws::String & value)54 inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; } 55 56 /** 57 * <p>The ID of the Data Catalog to set the security configuration for. If none is 58 * provided, the Amazon Web Services account ID is used by default.</p> 59 */ SetCatalogId(Aws::String && value)60 inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); } 61 62 /** 63 * <p>The ID of the Data Catalog to set the security configuration for. If none is 64 * provided, the Amazon Web Services account ID is used by default.</p> 65 */ SetCatalogId(const char * value)66 inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); } 67 68 /** 69 * <p>The ID of the Data Catalog to set the security configuration for. If none is 70 * provided, the Amazon Web Services account ID is used by default.</p> 71 */ WithCatalogId(const Aws::String & value)72 inline PutDataCatalogEncryptionSettingsRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;} 73 74 /** 75 * <p>The ID of the Data Catalog to set the security configuration for. If none is 76 * provided, the Amazon Web Services account ID is used by default.</p> 77 */ WithCatalogId(Aws::String && value)78 inline PutDataCatalogEncryptionSettingsRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;} 79 80 /** 81 * <p>The ID of the Data Catalog to set the security configuration for. If none is 82 * provided, the Amazon Web Services account ID is used by default.</p> 83 */ WithCatalogId(const char * value)84 inline PutDataCatalogEncryptionSettingsRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;} 85 86 87 /** 88 * <p>The security configuration to set.</p> 89 */ GetDataCatalogEncryptionSettings()90 inline const DataCatalogEncryptionSettings& GetDataCatalogEncryptionSettings() const{ return m_dataCatalogEncryptionSettings; } 91 92 /** 93 * <p>The security configuration to set.</p> 94 */ DataCatalogEncryptionSettingsHasBeenSet()95 inline bool DataCatalogEncryptionSettingsHasBeenSet() const { return m_dataCatalogEncryptionSettingsHasBeenSet; } 96 97 /** 98 * <p>The security configuration to set.</p> 99 */ SetDataCatalogEncryptionSettings(const DataCatalogEncryptionSettings & value)100 inline void SetDataCatalogEncryptionSettings(const DataCatalogEncryptionSettings& value) { m_dataCatalogEncryptionSettingsHasBeenSet = true; m_dataCatalogEncryptionSettings = value; } 101 102 /** 103 * <p>The security configuration to set.</p> 104 */ SetDataCatalogEncryptionSettings(DataCatalogEncryptionSettings && value)105 inline void SetDataCatalogEncryptionSettings(DataCatalogEncryptionSettings&& value) { m_dataCatalogEncryptionSettingsHasBeenSet = true; m_dataCatalogEncryptionSettings = std::move(value); } 106 107 /** 108 * <p>The security configuration to set.</p> 109 */ WithDataCatalogEncryptionSettings(const DataCatalogEncryptionSettings & value)110 inline PutDataCatalogEncryptionSettingsRequest& WithDataCatalogEncryptionSettings(const DataCatalogEncryptionSettings& value) { SetDataCatalogEncryptionSettings(value); return *this;} 111 112 /** 113 * <p>The security configuration to set.</p> 114 */ WithDataCatalogEncryptionSettings(DataCatalogEncryptionSettings && value)115 inline PutDataCatalogEncryptionSettingsRequest& WithDataCatalogEncryptionSettings(DataCatalogEncryptionSettings&& value) { SetDataCatalogEncryptionSettings(std::move(value)); return *this;} 116 117 private: 118 119 Aws::String m_catalogId; 120 bool m_catalogIdHasBeenSet; 121 122 DataCatalogEncryptionSettings m_dataCatalogEncryptionSettings; 123 bool m_dataCatalogEncryptionSettingsHasBeenSet; 124 }; 125 126 } // namespace Model 127 } // namespace Glue 128 } // namespace Aws 129