AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TlsValidationContext.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/SubjectAlternativeNames.h>
9#include <aws/appmesh/model/TlsValidationContextTrust.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 AppMesh
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPMESH_API TlsValidationContext() = default;
39 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
53 inline const SubjectAlternativeNames& GetSubjectAlternativeNames() const { return m_subjectAlternativeNames; }
54 inline bool SubjectAlternativeNamesHasBeenSet() const { return m_subjectAlternativeNamesHasBeenSet; }
55 template<typename SubjectAlternativeNamesT = SubjectAlternativeNames>
56 void SetSubjectAlternativeNames(SubjectAlternativeNamesT&& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames = std::forward<SubjectAlternativeNamesT>(value); }
57 template<typename SubjectAlternativeNamesT = SubjectAlternativeNames>
58 TlsValidationContext& WithSubjectAlternativeNames(SubjectAlternativeNamesT&& value) { SetSubjectAlternativeNames(std::forward<SubjectAlternativeNamesT>(value)); return *this;}
60
62
66 inline const TlsValidationContextTrust& GetTrust() const { return m_trust; }
67 inline bool TrustHasBeenSet() const { return m_trustHasBeenSet; }
68 template<typename TrustT = TlsValidationContextTrust>
69 void SetTrust(TrustT&& value) { m_trustHasBeenSet = true; m_trust = std::forward<TrustT>(value); }
70 template<typename TrustT = TlsValidationContextTrust>
71 TlsValidationContext& WithTrust(TrustT&& value) { SetTrust(std::forward<TrustT>(value)); return *this;}
73 private:
74
75 SubjectAlternativeNames m_subjectAlternativeNames;
76 bool m_subjectAlternativeNamesHasBeenSet = false;
77
79 bool m_trustHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace AppMesh
84} // namespace Aws
TlsValidationContext & WithTrust(TrustT &&value)
const TlsValidationContextTrust & GetTrust() const
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMESH_API TlsValidationContext(Aws::Utils::Json::JsonView jsonValue)
const SubjectAlternativeNames & GetSubjectAlternativeNames() const
AWS_APPMESH_API TlsValidationContext()=default
void SetSubjectAlternativeNames(SubjectAlternativeNamesT &&value)
AWS_APPMESH_API TlsValidationContext & operator=(Aws::Utils::Json::JsonView jsonValue)
TlsValidationContext & WithSubjectAlternativeNames(SubjectAlternativeNamesT &&value)
Aws::Utils::Json::JsonValue JsonValue