AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BlockPublicAccessConfiguration.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticmapreduce/model/PortRange.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EMR
23{
24namespace Model
25{
26
39 {
40 public:
45
46
48
55 inline bool GetBlockPublicSecurityGroupRules() const{ return m_blockPublicSecurityGroupRules; }
56 inline bool BlockPublicSecurityGroupRulesHasBeenSet() const { return m_blockPublicSecurityGroupRulesHasBeenSet; }
57 inline void SetBlockPublicSecurityGroupRules(bool value) { m_blockPublicSecurityGroupRulesHasBeenSet = true; m_blockPublicSecurityGroupRules = value; }
60
62
73 inline const Aws::Vector<PortRange>& GetPermittedPublicSecurityGroupRuleRanges() const{ return m_permittedPublicSecurityGroupRuleRanges; }
74 inline bool PermittedPublicSecurityGroupRuleRangesHasBeenSet() const { return m_permittedPublicSecurityGroupRuleRangesHasBeenSet; }
75 inline void SetPermittedPublicSecurityGroupRuleRanges(const Aws::Vector<PortRange>& value) { m_permittedPublicSecurityGroupRuleRangesHasBeenSet = true; m_permittedPublicSecurityGroupRuleRanges = value; }
76 inline void SetPermittedPublicSecurityGroupRuleRanges(Aws::Vector<PortRange>&& value) { m_permittedPublicSecurityGroupRuleRangesHasBeenSet = true; m_permittedPublicSecurityGroupRuleRanges = std::move(value); }
79 inline BlockPublicAccessConfiguration& AddPermittedPublicSecurityGroupRuleRanges(const PortRange& value) { m_permittedPublicSecurityGroupRuleRangesHasBeenSet = true; m_permittedPublicSecurityGroupRuleRanges.push_back(value); return *this; }
80 inline BlockPublicAccessConfiguration& AddPermittedPublicSecurityGroupRuleRanges(PortRange&& value) { m_permittedPublicSecurityGroupRuleRangesHasBeenSet = true; m_permittedPublicSecurityGroupRuleRanges.push_back(std::move(value)); return *this; }
82 private:
83
84 bool m_blockPublicSecurityGroupRules;
85 bool m_blockPublicSecurityGroupRulesHasBeenSet = false;
86
87 Aws::Vector<PortRange> m_permittedPublicSecurityGroupRuleRanges;
88 bool m_permittedPublicSecurityGroupRuleRangesHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace EMR
93} // namespace Aws
BlockPublicAccessConfiguration & WithPermittedPublicSecurityGroupRuleRanges(const Aws::Vector< PortRange > &value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMR_API BlockPublicAccessConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< PortRange > & GetPermittedPublicSecurityGroupRuleRanges() const
void SetPermittedPublicSecurityGroupRuleRanges(Aws::Vector< PortRange > &&value)
BlockPublicAccessConfiguration & AddPermittedPublicSecurityGroupRuleRanges(const PortRange &value)
void SetPermittedPublicSecurityGroupRuleRanges(const Aws::Vector< PortRange > &value)
BlockPublicAccessConfiguration & WithBlockPublicSecurityGroupRules(bool value)
BlockPublicAccessConfiguration & AddPermittedPublicSecurityGroupRuleRanges(PortRange &&value)
AWS_EMR_API BlockPublicAccessConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
BlockPublicAccessConfiguration & WithPermittedPublicSecurityGroupRuleRanges(Aws::Vector< PortRange > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue