AWS SDK for C++  1.9.71
AWS SDK for C++
PutLabelRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace FraudDetector
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 "PutLabel"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetName() const{ return m_name; }
43 
47  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 
52  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 
57  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
58 
62  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
63 
67  inline PutLabelRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
68 
72  inline PutLabelRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
73 
77  inline PutLabelRequest& WithName(const char* value) { SetName(value); return *this;}
78 
79 
83  inline const Aws::String& GetDescription() const{ return m_description; }
84 
88  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 
93  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
94 
98  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
99 
103  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
104 
108  inline PutLabelRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
109 
113  inline PutLabelRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
114 
118  inline PutLabelRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
119 
120 
124  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
125 
129  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
130 
134  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
135 
139  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
140 
144  inline PutLabelRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
145 
149  inline PutLabelRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
150 
154  inline PutLabelRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
155 
159  inline PutLabelRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
160 
161  private:
162 
163  Aws::String m_name;
164  bool m_nameHasBeenSet;
165 
166  Aws::String m_description;
167  bool m_descriptionHasBeenSet;
168 
169  Aws::Vector<Tag> m_tags;
170  bool m_tagsHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace FraudDetector
175 } // namespace Aws
FraudDetectorRequest.h
Aws::FraudDetector::Model::PutLabelRequest::WithTags
PutLabelRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: PutLabelRequest.h:149
Aws::FraudDetector::Model::PutLabelRequest::WithName
PutLabelRequest & WithName(Aws::String &&value)
Definition: PutLabelRequest.h:72
Aws::FraudDetector::Model::PutLabelRequest::GetName
const Aws::String & GetName() const
Definition: PutLabelRequest.h:42
Tag.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::FraudDetector::Model::PutLabelRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: PutLabelRequest.h:124
Aws::FraudDetector::Model::PutLabelRequest
Definition: PutLabelRequest.h:24
FraudDetector_EXPORTS.h
Aws::FraudDetector::Model::PutLabelRequest::WithDescription
PutLabelRequest & WithDescription(const Aws::String &value)
Definition: PutLabelRequest.h:108
Aws::FraudDetector::Model::PutLabelRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: PutLabelRequest.h:134
Aws::FraudDetector::Model::Tag
Definition: Tag.h:32
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::FraudDetector::Model::PutLabelRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: PutLabelRequest.h:129
AWSVector.h
Aws::FraudDetector::Model::PutLabelRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: PutLabelRequest.h:98
Aws::FraudDetector::Model::PutLabelRequest::WithName
PutLabelRequest & WithName(const char *value)
Definition: PutLabelRequest.h:77
Aws::FraudDetector::FraudDetectorRequest
Definition: FraudDetectorRequest.h:17
Aws::FraudDetector::Model::PutLabelRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutLabelRequest.h:32
Aws::FraudDetector::Model::PutLabelRequest::GetDescription
const Aws::String & GetDescription() const
Definition: PutLabelRequest.h:83
AWS_FRAUDDETECTOR_API
#define AWS_FRAUDDETECTOR_API
Definition: FraudDetector_EXPORTS.h:28
Aws::FraudDetector::Model::PutLabelRequest::AddTags
PutLabelRequest & AddTags(const Tag &value)
Definition: PutLabelRequest.h:154
Aws::FraudDetector::Model::PutLabelRequest::WithTags
PutLabelRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: PutLabelRequest.h:144
Aws::FraudDetector::Model::PutLabelRequest::AddTags
PutLabelRequest & AddTags(Tag &&value)
Definition: PutLabelRequest.h:159
Aws::FraudDetector::Model::PutLabelRequest::PutLabelRequest
PutLabelRequest()
AWSString.h
Aws::FraudDetector::Model::PutLabelRequest::WithDescription
PutLabelRequest & WithDescription(const char *value)
Definition: PutLabelRequest.h:118
Aws::FraudDetector::Model::PutLabelRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: PutLabelRequest.h:139
Aws::FraudDetector::Model::PutLabelRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::FraudDetector::Model::PutLabelRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: PutLabelRequest.h:47
Aws::FraudDetector::Model::PutLabelRequest::SetName
void SetName(const Aws::String &value)
Definition: PutLabelRequest.h:52
Aws::FraudDetector::Model::PutLabelRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::FraudDetector::Model::PutLabelRequest::SetDescription
void SetDescription(const char *value)
Definition: PutLabelRequest.h:103
Aws
Definition: AccessManagementClient.h:15
Aws::FraudDetector::Model::PutLabelRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: PutLabelRequest.h:93
Aws::FraudDetector::Model::PutLabelRequest::WithName
PutLabelRequest & WithName(const Aws::String &value)
Definition: PutLabelRequest.h:67
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::FraudDetector::Model::PutLabelRequest::SetName
void SetName(Aws::String &&value)
Definition: PutLabelRequest.h:57
Aws::FraudDetector::Model::PutLabelRequest::WithDescription
PutLabelRequest & WithDescription(Aws::String &&value)
Definition: PutLabelRequest.h:113
Aws::FraudDetector::Model::PutLabelRequest::SetName
void SetName(const char *value)
Definition: PutLabelRequest.h:62
Aws::FraudDetector::Model::PutLabelRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: PutLabelRequest.h:88