AWS SDK for C++  1.9.130
AWS SDK for C++
PutJobTaggingRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace S3Control
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "PutJobTagging"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
43  inline const Aws::String& GetAccountId() const{ return m_accountId; }
44 
49  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
50 
55  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
56 
61  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
62 
67  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
68 
73  inline PutJobTaggingRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
74 
79  inline PutJobTaggingRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
80 
85  inline PutJobTaggingRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
86 
87 
91  inline const Aws::String& GetJobId() const{ return m_jobId; }
92 
96  inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
97 
101  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
102 
106  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
107 
111  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
112 
116  inline PutJobTaggingRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
117 
121  inline PutJobTaggingRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
122 
126  inline PutJobTaggingRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
127 
128 
132  inline const Aws::Vector<S3Tag>& GetTags() const{ return m_tags; }
133 
137  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
138 
142  inline void SetTags(const Aws::Vector<S3Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
143 
147  inline void SetTags(Aws::Vector<S3Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
148 
152  inline PutJobTaggingRequest& WithTags(const Aws::Vector<S3Tag>& value) { SetTags(value); return *this;}
153 
157  inline PutJobTaggingRequest& WithTags(Aws::Vector<S3Tag>&& value) { SetTags(std::move(value)); return *this;}
158 
162  inline PutJobTaggingRequest& AddTags(const S3Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
163 
167  inline PutJobTaggingRequest& AddTags(S3Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
168 
169  private:
170 
171  Aws::String m_accountId;
172  bool m_accountIdHasBeenSet;
173 
174  Aws::String m_jobId;
175  bool m_jobIdHasBeenSet;
176 
177  Aws::Vector<S3Tag> m_tags;
178  bool m_tagsHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace S3Control
183 } // namespace Aws
Aws::S3Control::Model::PutJobTaggingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutJobTaggingRequest.h:32
Aws::S3Control::Model::PutJobTaggingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::S3Control::S3ControlRequest
Definition: S3ControlRequest.h:17
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::S3Control::Model::PutJobTaggingRequest::SetJobId
void SetJobId(const Aws::String &value)
Definition: PutJobTaggingRequest.h:101
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::S3Control::Model::PutJobTaggingRequest::WithAccountId
PutJobTaggingRequest & WithAccountId(const char *value)
Definition: PutJobTaggingRequest.h:85
AWSVector.h
Aws::S3Control::Model::PutJobTaggingRequest::WithAccountId
PutJobTaggingRequest & WithAccountId(Aws::String &&value)
Definition: PutJobTaggingRequest.h:79
S3Control_EXPORTS.h
Aws::S3Control::Model::PutJobTaggingRequest::SetTags
void SetTags(Aws::Vector< S3Tag > &&value)
Definition: PutJobTaggingRequest.h:147
Aws::S3Control::Model::PutJobTaggingRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::S3Control::Model::PutJobTaggingRequest::SetJobId
void SetJobId(Aws::String &&value)
Definition: PutJobTaggingRequest.h:106
Aws::S3Control::Model::PutJobTaggingRequest::SetTags
void SetTags(const Aws::Vector< S3Tag > &value)
Definition: PutJobTaggingRequest.h:142
Aws::S3Control::Model::PutJobTaggingRequest
Definition: PutJobTaggingRequest.h:24
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::PutJobTaggingRequest::WithJobId
PutJobTaggingRequest & WithJobId(const Aws::String &value)
Definition: PutJobTaggingRequest.h:116
Aws::S3Control::Model::PutJobTaggingRequest::JobIdHasBeenSet
bool JobIdHasBeenSet() const
Definition: PutJobTaggingRequest.h:96
Aws::S3Control::Model::PutJobTaggingRequest::SetJobId
void SetJobId(const char *value)
Definition: PutJobTaggingRequest.h:111
AWSString.h
Aws::S3Control::Model::PutJobTaggingRequest::SetAccountId
void SetAccountId(const char *value)
Definition: PutJobTaggingRequest.h:67
Aws::S3Control::Model::S3Tag
Definition: S3Tag.h:31
Aws::S3Control::Model::PutJobTaggingRequest::GetJobId
const Aws::String & GetJobId() const
Definition: PutJobTaggingRequest.h:91
Aws::S3Control::Model::PutJobTaggingRequest::AddTags
PutJobTaggingRequest & AddTags(const S3Tag &value)
Definition: PutJobTaggingRequest.h:162
Aws::S3Control::Model::PutJobTaggingRequest::AddTags
PutJobTaggingRequest & AddTags(S3Tag &&value)
Definition: PutJobTaggingRequest.h:167
Aws::S3Control::Model::PutJobTaggingRequest::PutJobTaggingRequest
PutJobTaggingRequest()
Aws::S3Control::Model::PutJobTaggingRequest::WithTags
PutJobTaggingRequest & WithTags(Aws::Vector< S3Tag > &&value)
Definition: PutJobTaggingRequest.h:157
Aws::S3Control::Model::PutJobTaggingRequest::WithTags
PutJobTaggingRequest & WithTags(const Aws::Vector< S3Tag > &value)
Definition: PutJobTaggingRequest.h:152
S3Tag.h
Aws::S3Control::Model::PutJobTaggingRequest::WithAccountId
PutJobTaggingRequest & WithAccountId(const Aws::String &value)
Definition: PutJobTaggingRequest.h:73
Aws::S3Control::Model::PutJobTaggingRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: PutJobTaggingRequest.h:55
Aws::S3Control::Model::PutJobTaggingRequest::WithJobId
PutJobTaggingRequest & WithJobId(const char *value)
Definition: PutJobTaggingRequest.h:126
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
S3ControlRequest.h
Aws::S3Control::Model::PutJobTaggingRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: PutJobTaggingRequest.h:61
Aws::S3Control::Model::PutJobTaggingRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: PutJobTaggingRequest.h:49
Aws::S3Control::Model::PutJobTaggingRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: PutJobTaggingRequest.h:137
Aws::S3Control::Model::PutJobTaggingRequest::GetTags
const Aws::Vector< S3Tag > & GetTags() const
Definition: PutJobTaggingRequest.h:132
Aws::S3Control::Model::PutJobTaggingRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: PutJobTaggingRequest.h:43
Aws::S3Control::Model::PutJobTaggingRequest::WithJobId
PutJobTaggingRequest & WithJobId(Aws::String &&value)
Definition: PutJobTaggingRequest.h:121