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 CreateApplicationRequest : public ApplicationDiscoveryServiceRequest 22 { 23 public: 24 CreateApplicationRequest(); 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 "CreateApplication"; } 31 32 Aws::String SerializePayload() const override; 33 34 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 35 36 37 /** 38 * <p>Name of the application to be created.</p> 39 */ GetName()40 inline const Aws::String& GetName() const{ return m_name; } 41 42 /** 43 * <p>Name of the application to be created.</p> 44 */ NameHasBeenSet()45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } 46 47 /** 48 * <p>Name of the application to be created.</p> 49 */ SetName(const Aws::String & value)50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } 51 52 /** 53 * <p>Name of the application to be created.</p> 54 */ SetName(Aws::String && value)55 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } 56 57 /** 58 * <p>Name of the application to be created.</p> 59 */ SetName(const char * value)60 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } 61 62 /** 63 * <p>Name of the application to be created.</p> 64 */ WithName(const Aws::String & value)65 inline CreateApplicationRequest& WithName(const Aws::String& value) { SetName(value); return *this;} 66 67 /** 68 * <p>Name of the application to be created.</p> 69 */ WithName(Aws::String && value)70 inline CreateApplicationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} 71 72 /** 73 * <p>Name of the application to be created.</p> 74 */ WithName(const char * value)75 inline CreateApplicationRequest& WithName(const char* value) { SetName(value); return *this;} 76 77 78 /** 79 * <p>Description of the application to be created.</p> 80 */ GetDescription()81 inline const Aws::String& GetDescription() const{ return m_description; } 82 83 /** 84 * <p>Description of the application to be created.</p> 85 */ DescriptionHasBeenSet()86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } 87 88 /** 89 * <p>Description of the application to be created.</p> 90 */ SetDescription(const Aws::String & value)91 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } 92 93 /** 94 * <p>Description of the application to be created.</p> 95 */ SetDescription(Aws::String && value)96 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } 97 98 /** 99 * <p>Description of the application to be created.</p> 100 */ SetDescription(const char * value)101 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } 102 103 /** 104 * <p>Description of the application to be created.</p> 105 */ WithDescription(const Aws::String & value)106 inline CreateApplicationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} 107 108 /** 109 * <p>Description of the application to be created.</p> 110 */ WithDescription(Aws::String && value)111 inline CreateApplicationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} 112 113 /** 114 * <p>Description of the application to be created.</p> 115 */ WithDescription(const char * value)116 inline CreateApplicationRequest& WithDescription(const char* value) { SetDescription(value); return *this;} 117 118 private: 119 120 Aws::String m_name; 121 bool m_nameHasBeenSet; 122 123 Aws::String m_description; 124 bool m_descriptionHasBeenSet; 125 }; 126 127 } // namespace Model 128 } // namespace ApplicationDiscoveryService 129 } // namespace Aws 130