AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RemoteAccessConfig.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 EKS
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EKS_API RemoteAccessConfig() = default;
40
41
43
54 inline const Aws::String& GetEc2SshKey() const { return m_ec2SshKey; }
55 inline bool Ec2SshKeyHasBeenSet() const { return m_ec2SshKeyHasBeenSet; }
56 template<typename Ec2SshKeyT = Aws::String>
57 void SetEc2SshKey(Ec2SshKeyT&& value) { m_ec2SshKeyHasBeenSet = true; m_ec2SshKey = std::forward<Ec2SshKeyT>(value); }
58 template<typename Ec2SshKeyT = Aws::String>
59 RemoteAccessConfig& WithEc2SshKey(Ec2SshKeyT&& value) { SetEc2SshKey(std::forward<Ec2SshKeyT>(value)); return *this;}
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) { m_sourceSecurityGroupsHasBeenSet = true; m_sourceSecurityGroups = std::forward<SourceSecurityGroupsT>(value); }
77 template<typename SourceSecurityGroupsT = Aws::Vector<Aws::String>>
78 RemoteAccessConfig& WithSourceSecurityGroups(SourceSecurityGroupsT&& value) { SetSourceSecurityGroups(std::forward<SourceSecurityGroupsT>(value)); return *this;}
79 template<typename SourceSecurityGroupsT = Aws::String>
80 RemoteAccessConfig& AddSourceSecurityGroups(SourceSecurityGroupsT&& value) { m_sourceSecurityGroupsHasBeenSet = true; m_sourceSecurityGroups.emplace_back(std::forward<SourceSecurityGroupsT>(value)); return *this; }
82 private:
83
84 Aws::String m_ec2SshKey;
85 bool m_ec2SshKeyHasBeenSet = false;
86
87 Aws::Vector<Aws::String> m_sourceSecurityGroups;
88 bool m_sourceSecurityGroupsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace EKS
93} // 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