AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SignPayloadRequest.h
1
6#pragma once
7#include <aws/signer/Signer_EXPORTS.h>
8#include <aws/signer/SignerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Array.h>
11#include <utility>
12
13namespace Aws
14{
15namespace signer
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SIGNER_API SignPayloadRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "SignPayload"; }
32
33 AWS_SIGNER_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetProfileName() const { return m_profileName; }
41 inline bool ProfileNameHasBeenSet() const { return m_profileNameHasBeenSet; }
42 template<typename ProfileNameT = Aws::String>
43 void SetProfileName(ProfileNameT&& value) { m_profileNameHasBeenSet = true; m_profileName = std::forward<ProfileNameT>(value); }
44 template<typename ProfileNameT = Aws::String>
45 SignPayloadRequest& WithProfileName(ProfileNameT&& value) { SetProfileName(std::forward<ProfileNameT>(value)); return *this;}
47
49
52 inline const Aws::String& GetProfileOwner() const { return m_profileOwner; }
53 inline bool ProfileOwnerHasBeenSet() const { return m_profileOwnerHasBeenSet; }
54 template<typename ProfileOwnerT = Aws::String>
55 void SetProfileOwner(ProfileOwnerT&& value) { m_profileOwnerHasBeenSet = true; m_profileOwner = std::forward<ProfileOwnerT>(value); }
56 template<typename ProfileOwnerT = Aws::String>
57 SignPayloadRequest& WithProfileOwner(ProfileOwnerT&& value) { SetProfileOwner(std::forward<ProfileOwnerT>(value)); return *this;}
59
61
64 inline const Aws::Utils::ByteBuffer& GetPayload() const { return m_payload; }
65 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
66 template<typename PayloadT = Aws::Utils::ByteBuffer>
67 void SetPayload(PayloadT&& value) { m_payloadHasBeenSet = true; m_payload = std::forward<PayloadT>(value); }
68 template<typename PayloadT = Aws::Utils::ByteBuffer>
69 SignPayloadRequest& WithPayload(PayloadT&& value) { SetPayload(std::forward<PayloadT>(value)); return *this;}
71
73
77 inline const Aws::String& GetPayloadFormat() const { return m_payloadFormat; }
78 inline bool PayloadFormatHasBeenSet() const { return m_payloadFormatHasBeenSet; }
79 template<typename PayloadFormatT = Aws::String>
80 void SetPayloadFormat(PayloadFormatT&& value) { m_payloadFormatHasBeenSet = true; m_payloadFormat = std::forward<PayloadFormatT>(value); }
81 template<typename PayloadFormatT = Aws::String>
82 SignPayloadRequest& WithPayloadFormat(PayloadFormatT&& value) { SetPayloadFormat(std::forward<PayloadFormatT>(value)); return *this;}
84 private:
85
86 Aws::String m_profileName;
87 bool m_profileNameHasBeenSet = false;
88
89 Aws::String m_profileOwner;
90 bool m_profileOwnerHasBeenSet = false;
91
92 Aws::Utils::ByteBuffer m_payload{};
93 bool m_payloadHasBeenSet = false;
94
95 Aws::String m_payloadFormat;
96 bool m_payloadFormatHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace signer
101} // 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