AWS SDK for C++  1.9.66
AWS SDK for C++
TagProjectRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace CodeStar
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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.
31  inline virtual const char* GetServiceRequestName() const override { return "TagProject"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetId() const{ return m_id; }
42 
46  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 
51  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
52 
56  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
57 
61  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
62 
66  inline TagProjectRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
67 
71  inline TagProjectRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
72 
76  inline TagProjectRequest& WithId(const char* value) { SetId(value); return *this;}
77 
78 
82  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
83 
87  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
88 
92  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
93 
97  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
98 
102  inline TagProjectRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
103 
107  inline TagProjectRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
108 
112  inline TagProjectRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
113 
117  inline TagProjectRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
118 
122  inline TagProjectRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
123 
127  inline TagProjectRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
128 
132  inline TagProjectRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
133 
137  inline TagProjectRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
138 
142  inline TagProjectRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
143 
144  private:
145 
146  Aws::String m_id;
147  bool m_idHasBeenSet;
148 
150  bool m_tagsHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace CodeStar
155 } // namespace Aws
Aws::CodeStar::Model::TagProjectRequest::GetId
const Aws::String & GetId() const
Definition: TagProjectRequest.h:41
Aws::CodeStar::Model::TagProjectRequest::AddTags
TagProjectRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: TagProjectRequest.h:127
Aws::CodeStar::Model::TagProjectRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: TagProjectRequest.h:97
Aws::CodeStar::Model::TagProjectRequest::WithTags
TagProjectRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: TagProjectRequest.h:102
Aws::CodeStar::Model::TagProjectRequest::SetId
void SetId(Aws::String &&value)
Definition: TagProjectRequest.h:56
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeStar::Model::TagProjectRequest::SetId
void SetId(const char *value)
Definition: TagProjectRequest.h:61
Aws::CodeStar::Model::TagProjectRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: TagProjectRequest.h:92
AWS_CODESTAR_API
#define AWS_CODESTAR_API
Definition: CodeStar_EXPORTS.h:28
Aws::CodeStar::Model::TagProjectRequest::WithTags
TagProjectRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: TagProjectRequest.h:107
Aws::CodeStar::Model::TagProjectRequest::IdHasBeenSet
bool IdHasBeenSet() const
Definition: TagProjectRequest.h:46
Aws::CodeStar::Model::TagProjectRequest::AddTags
TagProjectRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: TagProjectRequest.h:122
Aws::CodeStar::Model::TagProjectRequest::TagProjectRequest
TagProjectRequest()
Aws::CodeStar::Model::TagProjectRequest::WithId
TagProjectRequest & WithId(const char *value)
Definition: TagProjectRequest.h:76
Aws::CodeStar::Model::TagProjectRequest
Definition: TagProjectRequest.h:23
Aws::CodeStar::Model::TagProjectRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: TagProjectRequest.h:87
Aws::CodeStar::Model::TagProjectRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeStar::Model::TagProjectRequest::AddTags
TagProjectRequest & AddTags(const char *key, Aws::String &&value)
Definition: TagProjectRequest.h:132
Aws::CodeStar::Model::TagProjectRequest::AddTags
TagProjectRequest & AddTags(const char *key, const char *value)
Definition: TagProjectRequest.h:142
Aws::CodeStar::CodeStarRequest
Definition: CodeStarRequest.h:17
CodeStar_EXPORTS.h
CodeStarRequest.h
AWSString.h
Aws::CodeStar::Model::TagProjectRequest::AddTags
TagProjectRequest & AddTags(Aws::String &&key, const char *value)
Definition: TagProjectRequest.h:137
Aws::CodeStar::Model::TagProjectRequest::WithId
TagProjectRequest & WithId(Aws::String &&value)
Definition: TagProjectRequest.h:71
Aws::CodeStar::Model::TagProjectRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: TagProjectRequest.h:82
Aws::CodeStar::Model::TagProjectRequest::AddTags
TagProjectRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: TagProjectRequest.h:117
Aws::CodeStar::Model::TagProjectRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeStar::Model::TagProjectRequest::AddTags
TagProjectRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: TagProjectRequest.h:112
Aws::CodeStar::Model::TagProjectRequest::SetId
void SetId(const Aws::String &value)
Definition: TagProjectRequest.h:51
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeStar::Model::TagProjectRequest::WithId
TagProjectRequest & WithId(const Aws::String &value)
Definition: TagProjectRequest.h:66
AWSMap.h
Aws::CodeStar::Model::TagProjectRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: TagProjectRequest.h:31
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19