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/discovery/ApplicationDiscoveryService_EXPORTS.h> 8 #include <aws/discovery/ApplicationDiscoveryServiceRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace ApplicationDiscoveryService 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_APPLICATIONDISCOVERYSERVICE_API UpdateApplicationRequest : public ApplicationDiscoveryServiceRequest 22 { 23 public: 24 UpdateApplicationRequest(); 25 26 // Service request name is the Operation name which will send this request out, 27 // each operation should has unique request name, so that we can get operation's name from this request. 28 // Note: this is not true for response, multiple operations may have the same response name, 29 // so we can not get operation's name from response. GetServiceRequestName()30 inline virtual const char* GetServiceRequestName() const override { return "UpdateApplication"; } 31 32 Aws::String SerializePayload() const override; 33 34 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 35 36 37 /** 38 * <p>Configuration ID of the application to be updated.</p> 39 */ GetConfigurationId()40 inline const Aws::String& GetConfigurationId() const{ return m_configurationId; } 41 42 /** 43 * <p>Configuration ID of the application to be updated.</p> 44 */ ConfigurationIdHasBeenSet()45 inline bool ConfigurationIdHasBeenSet() const { return m_configurationIdHasBeenSet; } 46 47 /** 48 * <p>Configuration ID of the application to be updated.</p> 49 */ SetConfigurationId(const Aws::String & value)50 inline void SetConfigurationId(const Aws::String& value) { m_configurationIdHasBeenSet = true; m_configurationId = value; } 51 52 /** 53 * <p>Configuration ID of the application to be updated.</p> 54 */ SetConfigurationId(Aws::String && value)55 inline void SetConfigurationId(Aws::String&& value) { m_configurationIdHasBeenSet = true; m_configurationId = std::move(value); } 56 57 /** 58 * <p>Configuration ID of the application to be updated.</p> 59 */ SetConfigurationId(const char * value)60 inline void SetConfigurationId(const char* value) { m_configurationIdHasBeenSet = true; m_configurationId.assign(value); } 61 62 /** 63 * <p>Configuration ID of the application to be updated.</p> 64 */ WithConfigurationId(const Aws::String & value)65 inline UpdateApplicationRequest& WithConfigurationId(const Aws::String& value) { SetConfigurationId(value); return *this;} 66 67 /** 68 * <p>Configuration ID of the application to be updated.</p> 69 */ WithConfigurationId(Aws::String && value)70 inline UpdateApplicationRequest& WithConfigurationId(Aws::String&& value) { SetConfigurationId(std::move(value)); return *this;} 71 72 /** 73 * <p>Configuration ID of the application to be updated.</p> 74 */ WithConfigurationId(const char * value)75 inline UpdateApplicationRequest& WithConfigurationId(const char* value) { SetConfigurationId(value); return *this;} 76 77 78 /** 79 * <p>New name of the application to be updated.</p> 80 */ GetName()81 inline const Aws::String& GetName() const{ return m_name; } 82 83 /** 84 * <p>New name of the application to be updated.</p> 85 */ NameHasBeenSet()86 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } 87 88 /** 89 * <p>New name of the application to be updated.</p> 90 */ SetName(const Aws::String & value)91 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } 92 93 /** 94 * <p>New name of the application to be updated.</p> 95 */ SetName(Aws::String && value)96 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } 97 98 /** 99 * <p>New name of the application to be updated.</p> 100 */ SetName(const char * value)101 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } 102 103 /** 104 * <p>New name of the application to be updated.</p> 105 */ WithName(const Aws::String & value)106 inline UpdateApplicationRequest& WithName(const Aws::String& value) { SetName(value); return *this;} 107 108 /** 109 * <p>New name of the application to be updated.</p> 110 */ WithName(Aws::String && value)111 inline UpdateApplicationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} 112 113 /** 114 * <p>New name of the application to be updated.</p> 115 */ WithName(const char * value)116 inline UpdateApplicationRequest& WithName(const char* value) { SetName(value); return *this;} 117 118 119 /** 120 * <p>New description of the application to be updated.</p> 121 */ GetDescription()122 inline const Aws::String& GetDescription() const{ return m_description; } 123 124 /** 125 * <p>New description of the application to be updated.</p> 126 */ DescriptionHasBeenSet()127 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } 128 129 /** 130 * <p>New description of the application to be updated.</p> 131 */ SetDescription(const Aws::String & value)132 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } 133 134 /** 135 * <p>New description of the application to be updated.</p> 136 */ SetDescription(Aws::String && value)137 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } 138 139 /** 140 * <p>New description of the application to be updated.</p> 141 */ SetDescription(const char * value)142 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } 143 144 /** 145 * <p>New description of the application to be updated.</p> 146 */ WithDescription(const Aws::String & value)147 inline UpdateApplicationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} 148 149 /** 150 * <p>New description of the application to be updated.</p> 151 */ WithDescription(Aws::String && value)152 inline UpdateApplicationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} 153 154 /** 155 * <p>New description of the application to be updated.</p> 156 */ WithDescription(const char * value)157 inline UpdateApplicationRequest& WithDescription(const char* value) { SetDescription(value); return *this;} 158 159 private: 160 161 Aws::String m_configurationId; 162 bool m_configurationIdHasBeenSet; 163 164 Aws::String m_name; 165 bool m_nameHasBeenSet; 166 167 Aws::String m_description; 168 bool m_descriptionHasBeenSet; 169 }; 170 171 } // namespace Model 172 } // namespace ApplicationDiscoveryService 173 } // namespace Aws 174