AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InputSecurityGroup.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/medialive/model/InputSecurityGroupState.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/medialive/model/InputWhitelistRule.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace MediaLive
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_MEDIALIVE_API InputSecurityGroup();
39 AWS_MEDIALIVE_API InputSecurityGroup(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetArn() const{ return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
51 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
52 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
53 inline InputSecurityGroup& WithArn(const Aws::String& value) { SetArn(value); return *this;}
54 inline InputSecurityGroup& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
55 inline InputSecurityGroup& WithArn(const char* value) { SetArn(value); return *this;}
57
59
62 inline const Aws::String& GetId() const{ return m_id; }
63 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
64 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
65 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
66 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
67 inline InputSecurityGroup& WithId(const Aws::String& value) { SetId(value); return *this;}
68 inline InputSecurityGroup& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
69 inline InputSecurityGroup& WithId(const char* value) { SetId(value); return *this;}
71
73
76 inline const Aws::Vector<Aws::String>& GetInputs() const{ return m_inputs; }
77 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
78 inline void SetInputs(const Aws::Vector<Aws::String>& value) { m_inputsHasBeenSet = true; m_inputs = value; }
79 inline void SetInputs(Aws::Vector<Aws::String>&& value) { m_inputsHasBeenSet = true; m_inputs = std::move(value); }
80 inline InputSecurityGroup& WithInputs(const Aws::Vector<Aws::String>& value) { SetInputs(value); return *this;}
81 inline InputSecurityGroup& WithInputs(Aws::Vector<Aws::String>&& value) { SetInputs(std::move(value)); return *this;}
82 inline InputSecurityGroup& AddInputs(const Aws::String& value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; }
83 inline InputSecurityGroup& AddInputs(Aws::String&& value) { m_inputsHasBeenSet = true; m_inputs.push_back(std::move(value)); return *this; }
84 inline InputSecurityGroup& AddInputs(const char* value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; }
86
88
91 inline const InputSecurityGroupState& GetState() const{ return m_state; }
92 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
93 inline void SetState(const InputSecurityGroupState& value) { m_stateHasBeenSet = true; m_state = value; }
94 inline void SetState(InputSecurityGroupState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
95 inline InputSecurityGroup& WithState(const InputSecurityGroupState& value) { SetState(value); return *this;}
96 inline InputSecurityGroup& WithState(InputSecurityGroupState&& value) { SetState(std::move(value)); return *this;}
98
100
103 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
104 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
105 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
106 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
107 inline InputSecurityGroup& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
108 inline InputSecurityGroup& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
109 inline InputSecurityGroup& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
110 inline InputSecurityGroup& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
111 inline InputSecurityGroup& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
112 inline InputSecurityGroup& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
113 inline InputSecurityGroup& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
114 inline InputSecurityGroup& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
115 inline InputSecurityGroup& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
117
119
122 inline const Aws::Vector<InputWhitelistRule>& GetWhitelistRules() const{ return m_whitelistRules; }
123 inline bool WhitelistRulesHasBeenSet() const { return m_whitelistRulesHasBeenSet; }
124 inline void SetWhitelistRules(const Aws::Vector<InputWhitelistRule>& value) { m_whitelistRulesHasBeenSet = true; m_whitelistRules = value; }
125 inline void SetWhitelistRules(Aws::Vector<InputWhitelistRule>&& value) { m_whitelistRulesHasBeenSet = true; m_whitelistRules = std::move(value); }
128 inline InputSecurityGroup& AddWhitelistRules(const InputWhitelistRule& value) { m_whitelistRulesHasBeenSet = true; m_whitelistRules.push_back(value); return *this; }
129 inline InputSecurityGroup& AddWhitelistRules(InputWhitelistRule&& value) { m_whitelistRulesHasBeenSet = true; m_whitelistRules.push_back(std::move(value)); return *this; }
131 private:
132
133 Aws::String m_arn;
134 bool m_arnHasBeenSet = false;
135
136 Aws::String m_id;
137 bool m_idHasBeenSet = false;
138
140 bool m_inputsHasBeenSet = false;
141
143 bool m_stateHasBeenSet = false;
144
146 bool m_tagsHasBeenSet = false;
147
148 Aws::Vector<InputWhitelistRule> m_whitelistRules;
149 bool m_whitelistRulesHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace MediaLive
154} // namespace Aws
InputSecurityGroup & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetState(const InputSecurityGroupState &value)
void SetInputs(const Aws::Vector< Aws::String > &value)
InputSecurityGroup & AddTags(const char *key, Aws::String &&value)
const InputSecurityGroupState & GetState() const
InputSecurityGroup & WithState(InputSecurityGroupState &&value)
void SetState(InputSecurityGroupState &&value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
InputSecurityGroup & WithId(const char *value)
const Aws::Vector< Aws::String > & GetInputs() const
InputSecurityGroup & WithInputs(Aws::Vector< Aws::String > &&value)
InputSecurityGroup & WithId(const Aws::String &value)
InputSecurityGroup & AddTags(Aws::String &&key, const Aws::String &value)
InputSecurityGroup & AddTags(const Aws::String &key, const Aws::String &value)
InputSecurityGroup & AddInputs(const Aws::String &value)
InputSecurityGroup & WithArn(const char *value)
void SetWhitelistRules(const Aws::Vector< InputWhitelistRule > &value)
InputSecurityGroup & AddInputs(Aws::String &&value)
InputSecurityGroup & AddTags(const Aws::String &key, Aws::String &&value)
InputSecurityGroup & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetInputs(Aws::Vector< Aws::String > &&value)
InputSecurityGroup & AddTags(Aws::String &&key, const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_MEDIALIVE_API InputSecurityGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
InputSecurityGroup & AddInputs(const char *value)
AWS_MEDIALIVE_API InputSecurityGroup(Aws::Utils::Json::JsonView jsonValue)
InputSecurityGroup & WithInputs(const Aws::Vector< Aws::String > &value)
const Aws::Vector< InputWhitelistRule > & GetWhitelistRules() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
InputSecurityGroup & WithArn(const Aws::String &value)
InputSecurityGroup & AddTags(const char *key, const char *value)
InputSecurityGroup & WithWhitelistRules(const Aws::Vector< InputWhitelistRule > &value)
InputSecurityGroup & AddWhitelistRules(const InputWhitelistRule &value)
InputSecurityGroup & AddWhitelistRules(InputWhitelistRule &&value)
InputSecurityGroup & AddTags(Aws::String &&key, Aws::String &&value)
InputSecurityGroup & WithArn(Aws::String &&value)
InputSecurityGroup & WithWhitelistRules(Aws::Vector< InputWhitelistRule > &&value)
void SetArn(const Aws::String &value)
void SetWhitelistRules(Aws::Vector< InputWhitelistRule > &&value)
InputSecurityGroup & WithId(Aws::String &&value)
InputSecurityGroup & WithState(const InputSecurityGroupState &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
Aws::Utils::Json::JsonValue JsonValue