AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
CustomCodeSigning.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9#include <aws/iot/model/CodeSigningCertificateChain.h>
10#include <aws/iot/model/CodeSigningSignature.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoT {
22namespace Model {
23
31 public:
32 AWS_IOT_API CustomCodeSigning() = default;
36
38
41 inline const CodeSigningSignature& GetSignature() const { return m_signature; }
42 inline bool SignatureHasBeenSet() const { return m_signatureHasBeenSet; }
43 template <typename SignatureT = CodeSigningSignature>
44 void SetSignature(SignatureT&& value) {
45 m_signatureHasBeenSet = true;
46 m_signature = std::forward<SignatureT>(value);
47 }
48 template <typename SignatureT = CodeSigningSignature>
49 CustomCodeSigning& WithSignature(SignatureT&& value) {
50 SetSignature(std::forward<SignatureT>(value));
51 return *this;
52 }
54
56
59 inline const CodeSigningCertificateChain& GetCertificateChain() const { return m_certificateChain; }
60 inline bool CertificateChainHasBeenSet() const { return m_certificateChainHasBeenSet; }
61 template <typename CertificateChainT = CodeSigningCertificateChain>
62 void SetCertificateChain(CertificateChainT&& value) {
63 m_certificateChainHasBeenSet = true;
64 m_certificateChain = std::forward<CertificateChainT>(value);
65 }
66 template <typename CertificateChainT = CodeSigningCertificateChain>
67 CustomCodeSigning& WithCertificateChain(CertificateChainT&& value) {
68 SetCertificateChain(std::forward<CertificateChainT>(value));
69 return *this;
70 }
72
74
81 inline const Aws::String& GetHashAlgorithm() const { return m_hashAlgorithm; }
82 inline bool HashAlgorithmHasBeenSet() const { return m_hashAlgorithmHasBeenSet; }
83 template <typename HashAlgorithmT = Aws::String>
84 void SetHashAlgorithm(HashAlgorithmT&& value) {
85 m_hashAlgorithmHasBeenSet = true;
86 m_hashAlgorithm = std::forward<HashAlgorithmT>(value);
87 }
88 template <typename HashAlgorithmT = Aws::String>
89 CustomCodeSigning& WithHashAlgorithm(HashAlgorithmT&& value) {
90 SetHashAlgorithm(std::forward<HashAlgorithmT>(value));
91 return *this;
92 }
94
96
103 inline const Aws::String& GetSignatureAlgorithm() const { return m_signatureAlgorithm; }
104 inline bool SignatureAlgorithmHasBeenSet() const { return m_signatureAlgorithmHasBeenSet; }
105 template <typename SignatureAlgorithmT = Aws::String>
106 void SetSignatureAlgorithm(SignatureAlgorithmT&& value) {
107 m_signatureAlgorithmHasBeenSet = true;
108 m_signatureAlgorithm = std::forward<SignatureAlgorithmT>(value);
109 }
110 template <typename SignatureAlgorithmT = Aws::String>
111 CustomCodeSigning& WithSignatureAlgorithm(SignatureAlgorithmT&& value) {
112 SetSignatureAlgorithm(std::forward<SignatureAlgorithmT>(value));
113 return *this;
114 }
116 private:
117 CodeSigningSignature m_signature;
118
119 CodeSigningCertificateChain m_certificateChain;
120
121 Aws::String m_hashAlgorithm;
122
123 Aws::String m_signatureAlgorithm;
124 bool m_signatureHasBeenSet = false;
125 bool m_certificateChainHasBeenSet = false;
126 bool m_hashAlgorithmHasBeenSet = false;
127 bool m_signatureAlgorithmHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace IoT
132} // namespace Aws
void SetSignature(SignatureT &&value)
CustomCodeSigning & WithSignature(SignatureT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API CustomCodeSigning()=default
AWS_IOT_API CustomCodeSigning & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetHashAlgorithm(HashAlgorithmT &&value)
AWS_IOT_API CustomCodeSigning(Aws::Utils::Json::JsonView jsonValue)
void SetCertificateChain(CertificateChainT &&value)
void SetSignatureAlgorithm(SignatureAlgorithmT &&value)
const Aws::String & GetHashAlgorithm() const
const Aws::String & GetSignatureAlgorithm() const
CustomCodeSigning & WithHashAlgorithm(HashAlgorithmT &&value)
CustomCodeSigning & WithSignatureAlgorithm(SignatureAlgorithmT &&value)
const CodeSigningCertificateChain & GetCertificateChain() const
CustomCodeSigning & WithCertificateChain(CertificateChainT &&value)
const CodeSigningSignature & GetSignature() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue