AWS SDK for C++  1.9.109
AWS SDK for C++
AddTagsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ElasticLoadBalancing
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "AddTags"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
47  inline const Aws::Vector<Aws::String>& GetLoadBalancerNames() const{ return m_loadBalancerNames; }
48 
52  inline bool LoadBalancerNamesHasBeenSet() const { return m_loadBalancerNamesHasBeenSet; }
53 
57  inline void SetLoadBalancerNames(const Aws::Vector<Aws::String>& value) { m_loadBalancerNamesHasBeenSet = true; m_loadBalancerNames = value; }
58 
62  inline void SetLoadBalancerNames(Aws::Vector<Aws::String>&& value) { m_loadBalancerNamesHasBeenSet = true; m_loadBalancerNames = std::move(value); }
63 
67  inline AddTagsRequest& WithLoadBalancerNames(const Aws::Vector<Aws::String>& value) { SetLoadBalancerNames(value); return *this;}
68 
72  inline AddTagsRequest& WithLoadBalancerNames(Aws::Vector<Aws::String>&& value) { SetLoadBalancerNames(std::move(value)); return *this;}
73 
77  inline AddTagsRequest& AddLoadBalancerNames(const Aws::String& value) { m_loadBalancerNamesHasBeenSet = true; m_loadBalancerNames.push_back(value); return *this; }
78 
82  inline AddTagsRequest& AddLoadBalancerNames(Aws::String&& value) { m_loadBalancerNamesHasBeenSet = true; m_loadBalancerNames.push_back(std::move(value)); return *this; }
83 
87  inline AddTagsRequest& AddLoadBalancerNames(const char* value) { m_loadBalancerNamesHasBeenSet = true; m_loadBalancerNames.push_back(value); return *this; }
88 
89 
93  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
94 
98  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 
103  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
104 
108  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
109 
113  inline AddTagsRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
114 
118  inline AddTagsRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
119 
123  inline AddTagsRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
124 
128  inline AddTagsRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
129 
130  private:
131 
132  Aws::Vector<Aws::String> m_loadBalancerNames;
133  bool m_loadBalancerNamesHasBeenSet;
134 
135  Aws::Vector<Tag> m_tags;
136  bool m_tagsHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace ElasticLoadBalancing
141 } // namespace Aws
Aws::ElasticLoadBalancing::Model::AddTagsRequest::SetLoadBalancerNames
void SetLoadBalancerNames(const Aws::Vector< Aws::String > &value)
Definition: AddTagsRequest.h:57
Aws::Http::URI
Definition: URI.h:32
Aws::ElasticLoadBalancing::ElasticLoadBalancingRequest
Definition: ElasticLoadBalancingRequest.h:17
Aws::ElasticLoadBalancing::Model::Tag
Definition: Tag.h:32
Aws::ElasticLoadBalancing::Model::AddTagsRequest::AddLoadBalancerNames
AddTagsRequest & AddLoadBalancerNames(const Aws::String &value)
Definition: AddTagsRequest.h:77
Aws::ElasticLoadBalancing::Model::AddTagsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::ElasticLoadBalancing::Model::AddTagsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddTagsRequest.h:35
Aws::ElasticLoadBalancing::Model::AddTagsRequest
Definition: AddTagsRequest.h:27
Aws::ElasticLoadBalancing::Model::AddTagsRequest::WithTags
AddTagsRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: AddTagsRequest.h:118
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::ElasticLoadBalancing::Model::AddTagsRequest::WithLoadBalancerNames
AddTagsRequest & WithLoadBalancerNames(const Aws::Vector< Aws::String > &value)
Definition: AddTagsRequest.h:67
Aws::ElasticLoadBalancing::Model::AddTagsRequest::AddTags
AddTagsRequest & AddTags(const Tag &value)
Definition: AddTagsRequest.h:123
Aws::ElasticLoadBalancing::Model::AddTagsRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: AddTagsRequest.h:98
Aws::ElasticLoadBalancing::Model::AddTagsRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: AddTagsRequest.h:108
Aws::ElasticLoadBalancing::Model::AddTagsRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: AddTagsRequest.h:93
Aws::ElasticLoadBalancing::Model::AddTagsRequest::SetLoadBalancerNames
void SetLoadBalancerNames(Aws::Vector< Aws::String > &&value)
Definition: AddTagsRequest.h:62
Aws::ElasticLoadBalancing::Model::AddTagsRequest::GetLoadBalancerNames
const Aws::Vector< Aws::String > & GetLoadBalancerNames() const
Definition: AddTagsRequest.h:47
Aws::ElasticLoadBalancing::Model::AddTagsRequest::AddLoadBalancerNames
AddTagsRequest & AddLoadBalancerNames(const char *value)
Definition: AddTagsRequest.h:87
Aws::ElasticLoadBalancing::Model::AddTagsRequest::AddTags
AddTagsRequest & AddTags(Tag &&value)
Definition: AddTagsRequest.h:128
AWSString.h
Aws::ElasticLoadBalancing::Model::AddTagsRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: AddTagsRequest.h:103
Aws::ElasticLoadBalancing::Model::AddTagsRequest::AddLoadBalancerNames
AddTagsRequest & AddLoadBalancerNames(Aws::String &&value)
Definition: AddTagsRequest.h:82
AWS_ELASTICLOADBALANCING_API
#define AWS_ELASTICLOADBALANCING_API
Definition: ElasticLoadBalancing_EXPORTS.h:28
Aws::ElasticLoadBalancing::Model::AddTagsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticLoadBalancing::Model::AddTagsRequest::AddTagsRequest
AddTagsRequest()
Tag.h
ElasticLoadBalancing_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticLoadBalancing::Model::AddTagsRequest::LoadBalancerNamesHasBeenSet
bool LoadBalancerNamesHasBeenSet() const
Definition: AddTagsRequest.h:52
Aws::ElasticLoadBalancing::Model::AddTagsRequest::WithLoadBalancerNames
AddTagsRequest & WithLoadBalancerNames(Aws::Vector< Aws::String > &&value)
Definition: AddTagsRequest.h:72
ElasticLoadBalancingRequest.h
Aws::ElasticLoadBalancing::Model::AddTagsRequest::WithTags
AddTagsRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: AddTagsRequest.h:113