AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateInputSecurityGroupRequest.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/MediaLiveRequest.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/medialive/model/InputWhitelistRuleCidr.h>
13#include <utility>
14
15namespace Aws
16{
17namespace MediaLive
18{
19namespace 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_MEDIALIVE_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
47 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
48 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
49 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
51 inline CreateInputSecurityGroupRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
52 inline CreateInputSecurityGroupRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
53 inline CreateInputSecurityGroupRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
54 inline CreateInputSecurityGroupRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
55 inline CreateInputSecurityGroupRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
56 inline CreateInputSecurityGroupRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
57 inline CreateInputSecurityGroupRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
58 inline CreateInputSecurityGroupRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
60
62
65 inline const Aws::Vector<InputWhitelistRuleCidr>& GetWhitelistRules() const{ return m_whitelistRules; }
66 inline bool WhitelistRulesHasBeenSet() const { return m_whitelistRulesHasBeenSet; }
67 inline void SetWhitelistRules(const Aws::Vector<InputWhitelistRuleCidr>& value) { m_whitelistRulesHasBeenSet = true; m_whitelistRules = value; }
68 inline void SetWhitelistRules(Aws::Vector<InputWhitelistRuleCidr>&& value) { m_whitelistRulesHasBeenSet = true; m_whitelistRules = std::move(value); }
71 inline CreateInputSecurityGroupRequest& AddWhitelistRules(const InputWhitelistRuleCidr& value) { m_whitelistRulesHasBeenSet = true; m_whitelistRules.push_back(value); return *this; }
72 inline CreateInputSecurityGroupRequest& AddWhitelistRules(InputWhitelistRuleCidr&& value) { m_whitelistRulesHasBeenSet = true; m_whitelistRules.push_back(std::move(value)); return *this; }
74 private:
75
77 bool m_tagsHasBeenSet = false;
78
80 bool m_whitelistRulesHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace MediaLive
85} // namespace Aws
CreateInputSecurityGroupRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateInputSecurityGroupRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateInputSecurityGroupRequest & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::Vector< InputWhitelistRuleCidr > & GetWhitelistRules() const
CreateInputSecurityGroupRequest & WithWhitelistRules(const Aws::Vector< InputWhitelistRuleCidr > &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateInputSecurityGroupRequest & AddTags(const char *key, Aws::String &&value)
CreateInputSecurityGroupRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateInputSecurityGroupRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateInputSecurityGroupRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateInputSecurityGroupRequest & WithWhitelistRules(Aws::Vector< InputWhitelistRuleCidr > &&value)
void SetWhitelistRules(const Aws::Vector< InputWhitelistRuleCidr > &value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
void SetWhitelistRules(Aws::Vector< InputWhitelistRuleCidr > &&value)
CreateInputSecurityGroupRequest & AddTags(const char *key, const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateInputSecurityGroupRequest & AddTags(Aws::String &&key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateInputSecurityGroupRequest & AddWhitelistRules(const InputWhitelistRuleCidr &value)
CreateInputSecurityGroupRequest & AddWhitelistRules(InputWhitelistRuleCidr &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector