AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateInputSecurityGroupRequest.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.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 "UpdateInputSecurityGroup"; }
38
39 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::String& GetInputSecurityGroupId() const{ return m_inputSecurityGroupId; }
47 inline bool InputSecurityGroupIdHasBeenSet() const { return m_inputSecurityGroupIdHasBeenSet; }
48 inline void SetInputSecurityGroupId(const Aws::String& value) { m_inputSecurityGroupIdHasBeenSet = true; m_inputSecurityGroupId = value; }
49 inline void SetInputSecurityGroupId(Aws::String&& value) { m_inputSecurityGroupIdHasBeenSet = true; m_inputSecurityGroupId = std::move(value); }
50 inline void SetInputSecurityGroupId(const char* value) { m_inputSecurityGroupIdHasBeenSet = true; m_inputSecurityGroupId.assign(value); }
53 inline UpdateInputSecurityGroupRequest& WithInputSecurityGroupId(const char* value) { SetInputSecurityGroupId(value); return *this;}
55
57
60 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
61 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
62 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
63 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
65 inline UpdateInputSecurityGroupRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
66 inline UpdateInputSecurityGroupRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
67 inline UpdateInputSecurityGroupRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
68 inline UpdateInputSecurityGroupRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
69 inline UpdateInputSecurityGroupRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
70 inline UpdateInputSecurityGroupRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
71 inline UpdateInputSecurityGroupRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
72 inline UpdateInputSecurityGroupRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
74
76
79 inline const Aws::Vector<InputWhitelistRuleCidr>& GetWhitelistRules() const{ return m_whitelistRules; }
80 inline bool WhitelistRulesHasBeenSet() const { return m_whitelistRulesHasBeenSet; }
81 inline void SetWhitelistRules(const Aws::Vector<InputWhitelistRuleCidr>& value) { m_whitelistRulesHasBeenSet = true; m_whitelistRules = value; }
82 inline void SetWhitelistRules(Aws::Vector<InputWhitelistRuleCidr>&& value) { m_whitelistRulesHasBeenSet = true; m_whitelistRules = std::move(value); }
85 inline UpdateInputSecurityGroupRequest& AddWhitelistRules(const InputWhitelistRuleCidr& value) { m_whitelistRulesHasBeenSet = true; m_whitelistRules.push_back(value); return *this; }
86 inline UpdateInputSecurityGroupRequest& AddWhitelistRules(InputWhitelistRuleCidr&& value) { m_whitelistRulesHasBeenSet = true; m_whitelistRules.push_back(std::move(value)); return *this; }
88 private:
89
90 Aws::String m_inputSecurityGroupId;
91 bool m_inputSecurityGroupIdHasBeenSet = false;
92
94 bool m_tagsHasBeenSet = false;
95
97 bool m_whitelistRulesHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace MediaLive
102} // namespace Aws
UpdateInputSecurityGroupRequest & WithInputSecurityGroupId(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
UpdateInputSecurityGroupRequest & AddWhitelistRules(const InputWhitelistRuleCidr &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
UpdateInputSecurityGroupRequest & AddTags(const Aws::String &key, const Aws::String &value)
UpdateInputSecurityGroupRequest & WithWhitelistRules(Aws::Vector< InputWhitelistRuleCidr > &&value)
UpdateInputSecurityGroupRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
UpdateInputSecurityGroupRequest & WithInputSecurityGroupId(const char *value)
UpdateInputSecurityGroupRequest & AddWhitelistRules(InputWhitelistRuleCidr &&value)
UpdateInputSecurityGroupRequest & AddTags(const Aws::String &key, Aws::String &&value)
UpdateInputSecurityGroupRequest & AddTags(Aws::String &&key, const char *value)
void SetWhitelistRules(Aws::Vector< InputWhitelistRuleCidr > &&value)
UpdateInputSecurityGroupRequest & WithInputSecurityGroupId(Aws::String &&value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
UpdateInputSecurityGroupRequest & AddTags(Aws::String &&key, Aws::String &&value)
UpdateInputSecurityGroupRequest & AddTags(Aws::String &&key, const Aws::String &value)
UpdateInputSecurityGroupRequest & AddTags(const char *key, Aws::String &&value)
UpdateInputSecurityGroupRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetWhitelistRules(const Aws::Vector< InputWhitelistRuleCidr > &value)
UpdateInputSecurityGroupRequest & WithWhitelistRules(const Aws::Vector< InputWhitelistRuleCidr > &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Vector< InputWhitelistRuleCidr > & GetWhitelistRules() const
UpdateInputSecurityGroupRequest & AddTags(const char *key, const char *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