AWS SDK for C++  1.9.131
AWS SDK for C++
CreateApplicationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ApplicationDiscoveryService
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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.
30  inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetName() const{ return m_name; }
41 
45  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 
50  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 
55  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
56 
60  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
61 
65  inline CreateApplicationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
66 
70  inline CreateApplicationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 
75  inline CreateApplicationRequest& WithName(const char* value) { SetName(value); return *this;}
76 
77 
81  inline const Aws::String& GetDescription() const{ return m_description; }
82 
86  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 
91  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
92 
96  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
97 
101  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
102 
106  inline CreateApplicationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
107 
111  inline CreateApplicationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
112 
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
Aws::ApplicationDiscoveryService::Model::CreateApplicationRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateApplicationRequest.h:101
Aws::ApplicationDiscoveryService::Model::CreateApplicationRequest::CreateApplicationRequest
CreateApplicationRequest()
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ApplicationDiscoveryService::Model::CreateApplicationRequest::WithName
CreateApplicationRequest & WithName(Aws::String &&value)
Definition: CreateApplicationRequest.h:70
Aws::ApplicationDiscoveryService::Model::CreateApplicationRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateApplicationRequest.h:55
ApplicationDiscoveryService_EXPORTS.h
Aws::ApplicationDiscoveryService::Model::CreateApplicationRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateApplicationRequest.h:96
Aws::ApplicationDiscoveryService::Model::CreateApplicationRequest::WithDescription
CreateApplicationRequest & WithDescription(const char *value)
Definition: CreateApplicationRequest.h:116
Aws::ApplicationDiscoveryService::Model::CreateApplicationRequest
Definition: CreateApplicationRequest.h:22
Aws::ApplicationDiscoveryService::Model::CreateApplicationRequest::WithName
CreateApplicationRequest & WithName(const char *value)
Definition: CreateApplicationRequest.h:75
Aws::ApplicationDiscoveryService::Model::CreateApplicationRequest::GetName
const Aws::String & GetName() const
Definition: CreateApplicationRequest.h:40
Aws::ApplicationDiscoveryService::Model::CreateApplicationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ApplicationDiscoveryService::Model::CreateApplicationRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateApplicationRequest.h:81
AWSString.h
ApplicationDiscoveryServiceRequest.h
Aws::ApplicationDiscoveryService::ApplicationDiscoveryServiceRequest
Definition: ApplicationDiscoveryServiceRequest.h:17
Aws::ApplicationDiscoveryService::Model::CreateApplicationRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateApplicationRequest.h:86
Aws::ApplicationDiscoveryService::Model::CreateApplicationRequest::WithDescription
CreateApplicationRequest & WithDescription(const Aws::String &value)
Definition: CreateApplicationRequest.h:106
Aws::ApplicationDiscoveryService::Model::CreateApplicationRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateApplicationRequest.h:50
Aws::ApplicationDiscoveryService::Model::CreateApplicationRequest::SetName
void SetName(const char *value)
Definition: CreateApplicationRequest.h:60
Aws
Definition: AccessManagementClient.h:15
Aws::ApplicationDiscoveryService::Model::CreateApplicationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ApplicationDiscoveryService::Model::CreateApplicationRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateApplicationRequest.h:45
Aws::ApplicationDiscoveryService::Model::CreateApplicationRequest::WithName
CreateApplicationRequest & WithName(const Aws::String &value)
Definition: CreateApplicationRequest.h:65
Aws::ApplicationDiscoveryService::Model::CreateApplicationRequest::WithDescription
CreateApplicationRequest & WithDescription(Aws::String &&value)
Definition: CreateApplicationRequest.h:111
Aws::ApplicationDiscoveryService::Model::CreateApplicationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateApplicationRequest.h:30
AWS_APPLICATIONDISCOVERYSERVICE_API
#define AWS_APPLICATIONDISCOVERYSERVICE_API
Definition: ApplicationDiscoveryService_EXPORTS.h:28
Aws::ApplicationDiscoveryService::Model::CreateApplicationRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateApplicationRequest.h:91