AWS SDK for C++  1.8.126
AWS SDK for C++
BlockPublicAccessConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace EMR
23 {
24 namespace Model
25 {
26 
39  {
40  public:
45 
46 
53  inline bool GetBlockPublicSecurityGroupRules() const{ return m_blockPublicSecurityGroupRules; }
54 
61  inline bool BlockPublicSecurityGroupRulesHasBeenSet() const { return m_blockPublicSecurityGroupRulesHasBeenSet; }
62 
69  inline void SetBlockPublicSecurityGroupRules(bool value) { m_blockPublicSecurityGroupRulesHasBeenSet = true; m_blockPublicSecurityGroupRules = value; }
70 
77  inline BlockPublicAccessConfiguration& WithBlockPublicSecurityGroupRules(bool value) { SetBlockPublicSecurityGroupRules(value); return *this;}
78 
79 
91  inline const Aws::Vector<PortRange>& GetPermittedPublicSecurityGroupRuleRanges() const{ return m_permittedPublicSecurityGroupRuleRanges; }
92 
104  inline bool PermittedPublicSecurityGroupRuleRangesHasBeenSet() const { return m_permittedPublicSecurityGroupRuleRangesHasBeenSet; }
105 
117  inline void SetPermittedPublicSecurityGroupRuleRanges(const Aws::Vector<PortRange>& value) { m_permittedPublicSecurityGroupRuleRangesHasBeenSet = true; m_permittedPublicSecurityGroupRuleRanges = value; }
118 
130  inline void SetPermittedPublicSecurityGroupRuleRanges(Aws::Vector<PortRange>&& value) { m_permittedPublicSecurityGroupRuleRangesHasBeenSet = true; m_permittedPublicSecurityGroupRuleRanges = std::move(value); }
131 
143  inline BlockPublicAccessConfiguration& WithPermittedPublicSecurityGroupRuleRanges(const Aws::Vector<PortRange>& value) { SetPermittedPublicSecurityGroupRuleRanges(value); return *this;}
144 
156  inline BlockPublicAccessConfiguration& WithPermittedPublicSecurityGroupRuleRanges(Aws::Vector<PortRange>&& value) { SetPermittedPublicSecurityGroupRuleRanges(std::move(value)); return *this;}
157 
169  inline BlockPublicAccessConfiguration& AddPermittedPublicSecurityGroupRuleRanges(const PortRange& value) { m_permittedPublicSecurityGroupRuleRangesHasBeenSet = true; m_permittedPublicSecurityGroupRuleRanges.push_back(value); return *this; }
170 
182  inline BlockPublicAccessConfiguration& AddPermittedPublicSecurityGroupRuleRanges(PortRange&& value) { m_permittedPublicSecurityGroupRuleRangesHasBeenSet = true; m_permittedPublicSecurityGroupRuleRanges.push_back(std::move(value)); return *this; }
183 
184  private:
185 
186  bool m_blockPublicSecurityGroupRules;
187  bool m_blockPublicSecurityGroupRulesHasBeenSet;
188 
189  Aws::Vector<PortRange> m_permittedPublicSecurityGroupRuleRanges;
190  bool m_permittedPublicSecurityGroupRuleRangesHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace EMR
195 } // namespace Aws
Aws::EMR::Model::BlockPublicAccessConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::BlockPublicAccessConfiguration::BlockPublicSecurityGroupRulesHasBeenSet
bool BlockPublicSecurityGroupRulesHasBeenSet() const
Definition: BlockPublicAccessConfiguration.h:61
Aws::EMR::Model::BlockPublicAccessConfiguration::WithPermittedPublicSecurityGroupRuleRanges
BlockPublicAccessConfiguration & WithPermittedPublicSecurityGroupRuleRanges(const Aws::Vector< PortRange > &value)
Definition: BlockPublicAccessConfiguration.h:143
EMR_EXPORTS.h
Aws::EMR::Model::BlockPublicAccessConfiguration::GetPermittedPublicSecurityGroupRuleRanges
const Aws::Vector< PortRange > & GetPermittedPublicSecurityGroupRuleRanges() const
Definition: BlockPublicAccessConfiguration.h:91
Aws::EMR::Model::BlockPublicAccessConfiguration::WithBlockPublicSecurityGroupRules
BlockPublicAccessConfiguration & WithBlockPublicSecurityGroupRules(bool value)
Definition: BlockPublicAccessConfiguration.h:77
Aws::EMR::Model::BlockPublicAccessConfiguration::AddPermittedPublicSecurityGroupRuleRanges
BlockPublicAccessConfiguration & AddPermittedPublicSecurityGroupRuleRanges(PortRange &&value)
Definition: BlockPublicAccessConfiguration.h:182
PortRange.h
Aws::EMR::Model::BlockPublicAccessConfiguration::SetPermittedPublicSecurityGroupRuleRanges
void SetPermittedPublicSecurityGroupRuleRanges(const Aws::Vector< PortRange > &value)
Definition: BlockPublicAccessConfiguration.h:117
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EMR::Model::BlockPublicAccessConfiguration::SetBlockPublicSecurityGroupRules
void SetBlockPublicSecurityGroupRules(bool value)
Definition: BlockPublicAccessConfiguration.h:69
Aws::EMR::Model::PortRange
Definition: PortRange.h:32
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::EMR::Model::BlockPublicAccessConfiguration::BlockPublicAccessConfiguration
BlockPublicAccessConfiguration()
Aws::EMR::Model::BlockPublicAccessConfiguration::operator=
BlockPublicAccessConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::BlockPublicAccessConfiguration
Definition: BlockPublicAccessConfiguration.h:39
Aws::EMR::Model::BlockPublicAccessConfiguration::AddPermittedPublicSecurityGroupRuleRanges
BlockPublicAccessConfiguration & AddPermittedPublicSecurityGroupRuleRanges(const PortRange &value)
Definition: BlockPublicAccessConfiguration.h:169
Aws::EMR::Model::BlockPublicAccessConfiguration::GetBlockPublicSecurityGroupRules
bool GetBlockPublicSecurityGroupRules() const
Definition: BlockPublicAccessConfiguration.h:53
Aws::EMR::Model::BlockPublicAccessConfiguration::BlockPublicAccessConfiguration
BlockPublicAccessConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::BlockPublicAccessConfiguration::PermittedPublicSecurityGroupRuleRangesHasBeenSet
bool PermittedPublicSecurityGroupRuleRangesHasBeenSet() const
Definition: BlockPublicAccessConfiguration.h:104
Aws::EMR::Model::BlockPublicAccessConfiguration::SetPermittedPublicSecurityGroupRuleRanges
void SetPermittedPublicSecurityGroupRuleRanges(Aws::Vector< PortRange > &&value)
Definition: BlockPublicAccessConfiguration.h:130
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::BlockPublicAccessConfiguration::WithPermittedPublicSecurityGroupRuleRanges
BlockPublicAccessConfiguration & WithPermittedPublicSecurityGroupRuleRanges(Aws::Vector< PortRange > &&value)
Definition: BlockPublicAccessConfiguration.h:156