AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ClientCertificate.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/securityagent/SecurityAgent_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityAgent {
21namespace Model {
22
30 public:
31 AWS_SECURITYAGENT_API ClientCertificate() = default;
32 AWS_SECURITYAGENT_API ClientCertificate(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYAGENT_API ClientCertificate& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 ClientCertificate& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
61 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
62 template <typename SecretArnT = Aws::String>
63 void SetSecretArn(SecretArnT&& value) {
64 m_secretArnHasBeenSet = true;
65 m_secretArn = std::forward<SecretArnT>(value);
66 }
67 template <typename SecretArnT = Aws::String>
68 ClientCertificate& WithSecretArn(SecretArnT&& value) {
69 SetSecretArn(std::forward<SecretArnT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::Vector<Aws::String>& GetOrigins() const { return m_origins; }
80 inline bool OriginsHasBeenSet() const { return m_originsHasBeenSet; }
81 template <typename OriginsT = Aws::Vector<Aws::String>>
82 void SetOrigins(OriginsT&& value) {
83 m_originsHasBeenSet = true;
84 m_origins = std::forward<OriginsT>(value);
85 }
86 template <typename OriginsT = Aws::Vector<Aws::String>>
87 ClientCertificate& WithOrigins(OriginsT&& value) {
88 SetOrigins(std::forward<OriginsT>(value));
89 return *this;
90 }
91 template <typename OriginsT = Aws::String>
92 ClientCertificate& AddOrigins(OriginsT&& value) {
93 m_originsHasBeenSet = true;
94 m_origins.emplace_back(std::forward<OriginsT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_name;
100
101 Aws::String m_secretArn;
102
103 Aws::Vector<Aws::String> m_origins;
104 bool m_nameHasBeenSet = false;
105 bool m_secretArnHasBeenSet = false;
106 bool m_originsHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace SecurityAgent
111} // namespace Aws
ClientCertificate & AddOrigins(OriginsT &&value)
ClientCertificate & WithOrigins(OriginsT &&value)
AWS_SECURITYAGENT_API ClientCertificate(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYAGENT_API ClientCertificate & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetOrigins() const
AWS_SECURITYAGENT_API ClientCertificate()=default
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
ClientCertificate & WithSecretArn(SecretArnT &&value)
ClientCertificate & WithName(NameT &&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