AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
StartSigningJobRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/signer/SignerRequest.h>
10#include <aws/signer/Signer_EXPORTS.h>
11#include <aws/signer/model/Destination.h>
12#include <aws/signer/model/Source.h>
13
14#include <utility>
15
16namespace Aws {
17namespace signer {
18namespace Model {
19
23 public:
24 AWS_SIGNER_API StartSigningJobRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "StartSigningJob"; }
31
32 AWS_SIGNER_API Aws::String SerializePayload() const override;
33
35
39 inline const Source& GetSource() const { return m_source; }
40 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
41 template <typename SourceT = Source>
42 void SetSource(SourceT&& value) {
43 m_sourceHasBeenSet = true;
44 m_source = std::forward<SourceT>(value);
45 }
46 template <typename SourceT = Source>
48 SetSource(std::forward<SourceT>(value));
49 return *this;
50 }
52
54
58 inline const Destination& GetDestination() const { return m_destination; }
59 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
60 template <typename DestinationT = Destination>
61 void SetDestination(DestinationT&& value) {
62 m_destinationHasBeenSet = true;
63 m_destination = std::forward<DestinationT>(value);
64 }
65 template <typename DestinationT = Destination>
66 StartSigningJobRequest& WithDestination(DestinationT&& value) {
67 SetDestination(std::forward<DestinationT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetProfileName() const { return m_profileName; }
77 inline bool ProfileNameHasBeenSet() const { return m_profileNameHasBeenSet; }
78 template <typename ProfileNameT = Aws::String>
79 void SetProfileName(ProfileNameT&& value) {
80 m_profileNameHasBeenSet = true;
81 m_profileName = std::forward<ProfileNameT>(value);
82 }
83 template <typename ProfileNameT = Aws::String>
84 StartSigningJobRequest& WithProfileName(ProfileNameT&& value) {
85 SetProfileName(std::forward<ProfileNameT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
96 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
97 template <typename ClientRequestTokenT = Aws::String>
98 void SetClientRequestToken(ClientRequestTokenT&& value) {
99 m_clientRequestTokenHasBeenSet = true;
100 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
101 }
102 template <typename ClientRequestTokenT = Aws::String>
103 StartSigningJobRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
104 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetProfileOwner() const { return m_profileOwner; }
114 inline bool ProfileOwnerHasBeenSet() const { return m_profileOwnerHasBeenSet; }
115 template <typename ProfileOwnerT = Aws::String>
116 void SetProfileOwner(ProfileOwnerT&& value) {
117 m_profileOwnerHasBeenSet = true;
118 m_profileOwner = std::forward<ProfileOwnerT>(value);
119 }
120 template <typename ProfileOwnerT = Aws::String>
121 StartSigningJobRequest& WithProfileOwner(ProfileOwnerT&& value) {
122 SetProfileOwner(std::forward<ProfileOwnerT>(value));
123 return *this;
124 }
126 private:
127 Source m_source;
128
129 Destination m_destination;
130
131 Aws::String m_profileName;
132
133 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
134
135 Aws::String m_profileOwner;
136 bool m_sourceHasBeenSet = false;
137 bool m_destinationHasBeenSet = false;
138 bool m_profileNameHasBeenSet = false;
139 bool m_clientRequestTokenHasBeenSet = true;
140 bool m_profileOwnerHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace signer
145} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
StartSigningJobRequest & WithProfileName(ProfileNameT &&value)
StartSigningJobRequest & WithProfileOwner(ProfileOwnerT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
AWS_SIGNER_API Aws::String SerializePayload() const override
StartSigningJobRequest & WithClientRequestToken(ClientRequestTokenT &&value)
virtual const char * GetServiceRequestName() const override
StartSigningJobRequest & WithDestination(DestinationT &&value)
StartSigningJobRequest & WithSource(SourceT &&value)
AWS_SIGNER_API StartSigningJobRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String