AWS SDK for C++  1.8.71
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 ElasticLoadBalancingv2
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 "AddTags"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::Vector<Aws::String>& GetResourceArns() const{ return m_resourceArns; }
45 
49  inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
50 
54  inline void SetResourceArns(const Aws::Vector<Aws::String>& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = value; }
55 
59  inline void SetResourceArns(Aws::Vector<Aws::String>&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = std::move(value); }
60 
64  inline AddTagsRequest& WithResourceArns(const Aws::Vector<Aws::String>& value) { SetResourceArns(value); return *this;}
65 
69  inline AddTagsRequest& WithResourceArns(Aws::Vector<Aws::String>&& value) { SetResourceArns(std::move(value)); return *this;}
70 
74  inline AddTagsRequest& AddResourceArns(const Aws::String& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
75 
79  inline AddTagsRequest& AddResourceArns(Aws::String&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(std::move(value)); return *this; }
80 
84  inline AddTagsRequest& AddResourceArns(const char* value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
85 
86 
90  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
91 
95  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
96 
100  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
101 
105  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
106 
110  inline AddTagsRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
111 
115  inline AddTagsRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
116 
120  inline AddTagsRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
121 
125  inline AddTagsRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
126 
127  private:
128 
129  Aws::Vector<Aws::String> m_resourceArns;
130  bool m_resourceArnsHasBeenSet;
131 
132  Aws::Vector<Tag> m_tags;
133  bool m_tagsHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace ElasticLoadBalancingv2
138 } // namespace Aws
AddTagsRequest & AddTags(const Tag &value)
void SetResourceArns(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Tag > & GetTags() const
void SetTags(const Aws::Vector< Tag > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AddTagsRequest & WithResourceArns(const Aws::Vector< Aws::String > &value)
AddTagsRequest & AddResourceArns(const Aws::String &value)
AddTagsRequest & AddResourceArns(const char *value)
void SetResourceArns(const Aws::Vector< Aws::String > &value)
AddTagsRequest & WithTags(Aws::Vector< Tag > &&value)
virtual const char * GetServiceRequestName() const override
AddTagsRequest & WithResourceArns(Aws::Vector< Aws::String > &&value)
AddTagsRequest & AddResourceArns(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Vector< Aws::String > & GetResourceArns() const
AddTagsRequest & WithTags(const Aws::Vector< Tag > &value)
#define AWS_ELASTICLOADBALANCINGV2_API