AWS SDK for C++  1.8.71
AWS SDK for C++
CreateInputSecurityGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace MediaLive
18 {
19 namespace Model
20 {
21 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "CreateInputSecurityGroup"; }
38 
39  Aws::String SerializePayload() const override;
40 
41 
45  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
46 
50  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
51 
55  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
56 
60  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
61 
65  inline CreateInputSecurityGroupRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
66 
70  inline CreateInputSecurityGroupRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
71 
75  inline CreateInputSecurityGroupRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
76 
80  inline CreateInputSecurityGroupRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
81 
85  inline CreateInputSecurityGroupRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
86 
90  inline CreateInputSecurityGroupRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
91 
95  inline CreateInputSecurityGroupRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
96 
100  inline CreateInputSecurityGroupRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
101 
105  inline CreateInputSecurityGroupRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
106 
107 
111  inline const Aws::Vector<InputWhitelistRuleCidr>& GetWhitelistRules() const{ return m_whitelistRules; }
112 
116  inline bool WhitelistRulesHasBeenSet() const { return m_whitelistRulesHasBeenSet; }
117 
121  inline void SetWhitelistRules(const Aws::Vector<InputWhitelistRuleCidr>& value) { m_whitelistRulesHasBeenSet = true; m_whitelistRules = value; }
122 
126  inline void SetWhitelistRules(Aws::Vector<InputWhitelistRuleCidr>&& value) { m_whitelistRulesHasBeenSet = true; m_whitelistRules = std::move(value); }
127 
131  inline CreateInputSecurityGroupRequest& WithWhitelistRules(const Aws::Vector<InputWhitelistRuleCidr>& value) { SetWhitelistRules(value); return *this;}
132 
136  inline CreateInputSecurityGroupRequest& WithWhitelistRules(Aws::Vector<InputWhitelistRuleCidr>&& value) { SetWhitelistRules(std::move(value)); return *this;}
137 
141  inline CreateInputSecurityGroupRequest& AddWhitelistRules(const InputWhitelistRuleCidr& value) { m_whitelistRulesHasBeenSet = true; m_whitelistRules.push_back(value); return *this; }
142 
146  inline CreateInputSecurityGroupRequest& AddWhitelistRules(InputWhitelistRuleCidr&& value) { m_whitelistRulesHasBeenSet = true; m_whitelistRules.push_back(std::move(value)); return *this; }
147 
148  private:
149 
151  bool m_tagsHasBeenSet;
152 
153  Aws::Vector<InputWhitelistRuleCidr> m_whitelistRules;
154  bool m_whitelistRulesHasBeenSet;
155  };
156 
157 } // namespace Model
158 } // namespace MediaLive
159 } // namespace Aws
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateInputSecurityGroupRequest & AddWhitelistRules(InputWhitelistRuleCidr &&value)
void SetWhitelistRules(const Aws::Vector< InputWhitelistRuleCidr > &value)
CreateInputSecurityGroupRequest & AddTags(Aws::String &&key, Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CreateInputSecurityGroupRequest & AddTags(const Aws::String &key, Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
CreateInputSecurityGroupRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateInputSecurityGroupRequest & AddTags(Aws::String &&key, const char *value)
CreateInputSecurityGroupRequest & AddWhitelistRules(const InputWhitelistRuleCidr &value)
CreateInputSecurityGroupRequest & AddTags(const char *key, const char *value)
#define AWS_MEDIALIVE_API
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateInputSecurityGroupRequest & WithWhitelistRules(const Aws::Vector< InputWhitelistRuleCidr > &value)
CreateInputSecurityGroupRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Vector< InputWhitelistRuleCidr > & GetWhitelistRules() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateInputSecurityGroupRequest & AddTags(const char *key, Aws::String &&value)
CreateInputSecurityGroupRequest & WithWhitelistRules(Aws::Vector< InputWhitelistRuleCidr > &&value)
CreateInputSecurityGroupRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateInputSecurityGroupRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetWhitelistRules(Aws::Vector< InputWhitelistRuleCidr > &&value)