AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
SecurityDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/groundstation/GroundStation_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GroundStation {
21namespace Model {
22
29 public:
30 AWS_GROUNDSTATION_API SecurityDetails() = default;
31 AWS_GROUNDSTATION_API SecurityDetails(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GROUNDSTATION_API SecurityDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GROUNDSTATION_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
41 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
42 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
43 void SetSubnetIds(SubnetIdsT&& value) {
44 m_subnetIdsHasBeenSet = true;
45 m_subnetIds = std::forward<SubnetIdsT>(value);
46 }
47 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
48 SecurityDetails& WithSubnetIds(SubnetIdsT&& value) {
49 SetSubnetIds(std::forward<SubnetIdsT>(value));
50 return *this;
51 }
52 template <typename SubnetIdsT = Aws::String>
53 SecurityDetails& AddSubnetIds(SubnetIdsT&& value) {
54 m_subnetIdsHasBeenSet = true;
55 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
65 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
66 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
67 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
68 m_securityGroupIdsHasBeenSet = true;
69 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
70 }
71 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
72 SecurityDetails& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
73 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
74 return *this;
75 }
76 template <typename SecurityGroupIdsT = Aws::String>
77 SecurityDetails& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
78 m_securityGroupIdsHasBeenSet = true;
79 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
89 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
90 template <typename RoleArnT = Aws::String>
91 void SetRoleArn(RoleArnT&& value) {
92 m_roleArnHasBeenSet = true;
93 m_roleArn = std::forward<RoleArnT>(value);
94 }
95 template <typename RoleArnT = Aws::String>
96 SecurityDetails& WithRoleArn(RoleArnT&& value) {
97 SetRoleArn(std::forward<RoleArnT>(value));
98 return *this;
99 }
101 private:
102 Aws::Vector<Aws::String> m_subnetIds;
103
104 Aws::Vector<Aws::String> m_securityGroupIds;
105
106 Aws::String m_roleArn;
107 bool m_subnetIdsHasBeenSet = false;
108 bool m_securityGroupIdsHasBeenSet = false;
109 bool m_roleArnHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace GroundStation
114} // namespace Aws
AWS_GROUNDSTATION_API Aws::Utils::Json::JsonValue Jsonize() const
SecurityDetails & WithRoleArn(RoleArnT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_GROUNDSTATION_API SecurityDetails()=default
SecurityDetails & WithSubnetIds(SubnetIdsT &&value)
SecurityDetails & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_GROUNDSTATION_API SecurityDetails(Aws::Utils::Json::JsonView jsonValue)
SecurityDetails & AddSubnetIds(SubnetIdsT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
SecurityDetails & WithSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_GROUNDSTATION_API SecurityDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue