AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
SignPayloadRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/signer/SignerRequest.h>
10#include <aws/signer/Signer_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace signer {
16namespace Model {
17
21 public:
22 AWS_SIGNER_API SignPayloadRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "SignPayload"; }
29
30 AWS_SIGNER_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetProfileName() const { return m_profileName; }
37 inline bool ProfileNameHasBeenSet() const { return m_profileNameHasBeenSet; }
38 template <typename ProfileNameT = Aws::String>
39 void SetProfileName(ProfileNameT&& value) {
40 m_profileNameHasBeenSet = true;
41 m_profileName = std::forward<ProfileNameT>(value);
42 }
43 template <typename ProfileNameT = Aws::String>
44 SignPayloadRequest& WithProfileName(ProfileNameT&& value) {
45 SetProfileName(std::forward<ProfileNameT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetProfileOwner() const { return m_profileOwner; }
55 inline bool ProfileOwnerHasBeenSet() const { return m_profileOwnerHasBeenSet; }
56 template <typename ProfileOwnerT = Aws::String>
57 void SetProfileOwner(ProfileOwnerT&& value) {
58 m_profileOwnerHasBeenSet = true;
59 m_profileOwner = std::forward<ProfileOwnerT>(value);
60 }
61 template <typename ProfileOwnerT = Aws::String>
62 SignPayloadRequest& WithProfileOwner(ProfileOwnerT&& value) {
63 SetProfileOwner(std::forward<ProfileOwnerT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::Utils::ByteBuffer& GetPayload() const { return m_payload; }
73 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
74 template <typename PayloadT = Aws::Utils::ByteBuffer>
75 void SetPayload(PayloadT&& value) {
76 m_payloadHasBeenSet = true;
77 m_payload = std::forward<PayloadT>(value);
78 }
79 template <typename PayloadT = Aws::Utils::ByteBuffer>
80 SignPayloadRequest& WithPayload(PayloadT&& value) {
81 SetPayload(std::forward<PayloadT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::String& GetPayloadFormat() const { return m_payloadFormat; }
92 inline bool PayloadFormatHasBeenSet() const { return m_payloadFormatHasBeenSet; }
93 template <typename PayloadFormatT = Aws::String>
94 void SetPayloadFormat(PayloadFormatT&& value) {
95 m_payloadFormatHasBeenSet = true;
96 m_payloadFormat = std::forward<PayloadFormatT>(value);
97 }
98 template <typename PayloadFormatT = Aws::String>
99 SignPayloadRequest& WithPayloadFormat(PayloadFormatT&& value) {
100 SetPayloadFormat(std::forward<PayloadFormatT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_profileName;
106 bool m_profileNameHasBeenSet = false;
107
108 Aws::String m_profileOwner;
109 bool m_profileOwnerHasBeenSet = false;
110
111 Aws::Utils::ByteBuffer m_payload{};
112 bool m_payloadHasBeenSet = false;
113
114 Aws::String m_payloadFormat;
115 bool m_payloadFormatHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace signer
120} // namespace Aws
SignPayloadRequest & WithPayloadFormat(PayloadFormatT &&value)
SignPayloadRequest & WithProfileOwner(ProfileOwnerT &&value)
SignPayloadRequest & WithProfileName(ProfileNameT &&value)
const Aws::String & GetProfileName() const
void SetPayloadFormat(PayloadFormatT &&value)
const Aws::String & GetProfileOwner() const
const Aws::Utils::ByteBuffer & GetPayload() const
void SetProfileName(ProfileNameT &&value)
const Aws::String & GetPayloadFormat() const
virtual const char * GetServiceRequestName() const override
AWS_SIGNER_API SignPayloadRequest()=default
SignPayloadRequest & WithPayload(PayloadT &&value)
void SetProfileOwner(ProfileOwnerT &&value)
AWS_SIGNER_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String