AWS SDK for C++  1.8.71
AWS SDK for C++
CreateProjectRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/core/utils/Array.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace Mobile
20 {
21 namespace Model
22 {
23 
31  {
32  public:
34 
35  // Service request name is the Operation name which will send this request out,
36  // each operation should has unique request name, so that we can get operation's name from this request.
37  // Note: this is not true for response, multiple operations may have the same response name,
38  // so we can not get operation's name from response.
39  inline virtual const char* GetServiceRequestName() const override { return "CreateProject"; }
40 
41  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42 
43 
47  inline const Aws::String& GetName() const{ return m_name; }
48 
52  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 
57  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 
62  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 
67  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 
72  inline CreateProjectRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
73 
77  inline CreateProjectRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
78 
82  inline CreateProjectRequest& WithName(const char* value) { SetName(value); return *this;}
83 
84 
88  inline const Aws::String& GetRegion() const{ return m_region; }
89 
93  inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
94 
98  inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
99 
103  inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
104 
108  inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
109 
113  inline CreateProjectRequest& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
114 
118  inline CreateProjectRequest& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
119 
123  inline CreateProjectRequest& WithRegion(const char* value) { SetRegion(value); return *this;}
124 
125 
131  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
132 
138  inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
139 
145  inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
146 
152  inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
153 
159  inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
160 
166  inline CreateProjectRequest& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
167 
173  inline CreateProjectRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
174 
180  inline CreateProjectRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
181 
182  private:
183 
184  Aws::String m_name;
185  bool m_nameHasBeenSet;
186 
187  Aws::String m_region;
188  bool m_regionHasBeenSet;
189 
190 
191  Aws::String m_snapshotId;
192  bool m_snapshotIdHasBeenSet;
193  };
194 
195 } // namespace Model
196 } // namespace Mobile
197 } // namespace Aws
CreateProjectRequest & WithRegion(Aws::String &&value)
#define AWS_MOBILE_API
CreateProjectRequest & WithSnapshotId(const Aws::String &value)
CreateProjectRequest & WithSnapshotId(Aws::String &&value)
CreateProjectRequest & WithSnapshotId(const char *value)
CreateProjectRequest & WithName(Aws::String &&value)
CreateProjectRequest & WithName(const Aws::String &value)
void SetName(const Aws::String &value)
CreateProjectRequest & WithRegion(const char *value)
virtual const char * GetServiceRequestName() const override
void SetSnapshotId(const Aws::String &value)
CreateProjectRequest & WithName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetRegion(const Aws::String &value)
CreateProjectRequest & WithRegion(const Aws::String &value)