AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RemoteAccessConfig.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/eks/EKS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace EKS {
21namespace Model {
22
30 public:
31 AWS_EKS_API RemoteAccessConfig() = default;
35
37
48 inline const Aws::String& GetEc2SshKey() const { return m_ec2SshKey; }
49 inline bool Ec2SshKeyHasBeenSet() const { return m_ec2SshKeyHasBeenSet; }
50 template <typename Ec2SshKeyT = Aws::String>
51 void SetEc2SshKey(Ec2SshKeyT&& value) {
52 m_ec2SshKeyHasBeenSet = true;
53 m_ec2SshKey = std::forward<Ec2SshKeyT>(value);
54 }
55 template <typename Ec2SshKeyT = Aws::String>
56 RemoteAccessConfig& WithEc2SshKey(Ec2SshKeyT&& value) {
57 SetEc2SshKey(std::forward<Ec2SshKeyT>(value));
58 return *this;
59 }
61
63
73 inline const Aws::Vector<Aws::String>& GetSourceSecurityGroups() const { return m_sourceSecurityGroups; }
74 inline bool SourceSecurityGroupsHasBeenSet() const { return m_sourceSecurityGroupsHasBeenSet; }
75 template <typename SourceSecurityGroupsT = Aws::Vector<Aws::String>>
76 void SetSourceSecurityGroups(SourceSecurityGroupsT&& value) {
77 m_sourceSecurityGroupsHasBeenSet = true;
78 m_sourceSecurityGroups = std::forward<SourceSecurityGroupsT>(value);
79 }
80 template <typename SourceSecurityGroupsT = Aws::Vector<Aws::String>>
81 RemoteAccessConfig& WithSourceSecurityGroups(SourceSecurityGroupsT&& value) {
82 SetSourceSecurityGroups(std::forward<SourceSecurityGroupsT>(value));
83 return *this;
84 }
85 template <typename SourceSecurityGroupsT = Aws::String>
86 RemoteAccessConfig& AddSourceSecurityGroups(SourceSecurityGroupsT&& value) {
87 m_sourceSecurityGroupsHasBeenSet = true;
88 m_sourceSecurityGroups.emplace_back(std::forward<SourceSecurityGroupsT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_ec2SshKey;
94
95 Aws::Vector<Aws::String> m_sourceSecurityGroups;
96 bool m_ec2SshKeyHasBeenSet = false;
97 bool m_sourceSecurityGroupsHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace EKS
102} // namespace Aws
AWS_EKS_API RemoteAccessConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
RemoteAccessConfig & WithSourceSecurityGroups(SourceSecurityGroupsT &&value)
RemoteAccessConfig & AddSourceSecurityGroups(SourceSecurityGroupsT &&value)
RemoteAccessConfig & WithEc2SshKey(Ec2SshKeyT &&value)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EKS_API RemoteAccessConfig()=default
void SetSourceSecurityGroups(SourceSecurityGroupsT &&value)
const Aws::Vector< Aws::String > & GetSourceSecurityGroups() const
AWS_EKS_API RemoteAccessConfig(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetEc2SshKey() const
void SetEc2SshKey(Ec2SshKeyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue