AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetProfileName(const Aws::String& value) { m_profileNameHasBeenSet = true; m_profileName = value; }
43 inline void SetProfileName(Aws::String&& value) { m_profileNameHasBeenSet = true; m_profileName = std::move(value); }
44 inline void SetProfileName(const char* value) { m_profileNameHasBeenSet = true; m_profileName.assign(value); }
45 inline SignPayloadRequest& WithProfileName(const Aws::String& value) { SetProfileName(value); return *this;}
46 inline SignPayloadRequest& WithProfileName(Aws::String&& value) { SetProfileName(std::move(value)); return *this;}
47 inline SignPayloadRequest& WithProfileName(const char* value) { SetProfileName(value); return *this;}
49
51
54 inline const Aws::String& GetProfileOwner() const{ return m_profileOwner; }
55 inline bool ProfileOwnerHasBeenSet() const { return m_profileOwnerHasBeenSet; }
56 inline void SetProfileOwner(const Aws::String& value) { m_profileOwnerHasBeenSet = true; m_profileOwner = value; }
57 inline void SetProfileOwner(Aws::String&& value) { m_profileOwnerHasBeenSet = true; m_profileOwner = std::move(value); }
58 inline void SetProfileOwner(const char* value) { m_profileOwnerHasBeenSet = true; m_profileOwner.assign(value); }
59 inline SignPayloadRequest& WithProfileOwner(const Aws::String& value) { SetProfileOwner(value); return *this;}
60 inline SignPayloadRequest& WithProfileOwner(Aws::String&& value) { SetProfileOwner(std::move(value)); return *this;}
61 inline SignPayloadRequest& WithProfileOwner(const char* value) { SetProfileOwner(value); return *this;}
63
65
68 inline const Aws::Utils::ByteBuffer& GetPayload() const{ return m_payload; }
69 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
70 inline void SetPayload(const Aws::Utils::ByteBuffer& value) { m_payloadHasBeenSet = true; m_payload = value; }
71 inline void SetPayload(Aws::Utils::ByteBuffer&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); }
72 inline SignPayloadRequest& WithPayload(const Aws::Utils::ByteBuffer& value) { SetPayload(value); return *this;}
73 inline SignPayloadRequest& WithPayload(Aws::Utils::ByteBuffer&& value) { SetPayload(std::move(value)); return *this;}
75
77
81 inline const Aws::String& GetPayloadFormat() const{ return m_payloadFormat; }
82 inline bool PayloadFormatHasBeenSet() const { return m_payloadFormatHasBeenSet; }
83 inline void SetPayloadFormat(const Aws::String& value) { m_payloadFormatHasBeenSet = true; m_payloadFormat = value; }
84 inline void SetPayloadFormat(Aws::String&& value) { m_payloadFormatHasBeenSet = true; m_payloadFormat = std::move(value); }
85 inline void SetPayloadFormat(const char* value) { m_payloadFormatHasBeenSet = true; m_payloadFormat.assign(value); }
86 inline SignPayloadRequest& WithPayloadFormat(const Aws::String& value) { SetPayloadFormat(value); return *this;}
87 inline SignPayloadRequest& WithPayloadFormat(Aws::String&& value) { SetPayloadFormat(std::move(value)); return *this;}
88 inline SignPayloadRequest& WithPayloadFormat(const char* value) { SetPayloadFormat(value); return *this;}
90 private:
91
92 Aws::String m_profileName;
93 bool m_profileNameHasBeenSet = false;
94
95 Aws::String m_profileOwner;
96 bool m_profileOwnerHasBeenSet = false;
97
98 Aws::Utils::ByteBuffer m_payload;
99 bool m_payloadHasBeenSet = false;
100
101 Aws::String m_payloadFormat;
102 bool m_payloadFormatHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace signer
107} // namespace Aws
SignPayloadRequest & WithPayload(const Aws::Utils::ByteBuffer &value)
void SetProfileOwner(Aws::String &&value)
void SetProfileOwner(const Aws::String &value)
SignPayloadRequest & WithPayloadFormat(const char *value)
SignPayloadRequest & WithPayloadFormat(const Aws::String &value)
SignPayloadRequest & WithProfileName(const Aws::String &value)
void SetPayload(const Aws::Utils::ByteBuffer &value)
SignPayloadRequest & WithPayloadFormat(Aws::String &&value)
const Aws::String & GetProfileName() const
SignPayloadRequest & WithProfileOwner(const char *value)
void SetPayloadFormat(const Aws::String &value)
void SetProfileName(const Aws::String &value)
SignPayloadRequest & WithProfileOwner(Aws::String &&value)
const Aws::String & GetProfileOwner() const
SignPayloadRequest & WithProfileName(Aws::String &&value)
const Aws::Utils::ByteBuffer & GetPayload() const
SignPayloadRequest & WithProfileName(const char *value)
const Aws::String & GetPayloadFormat() const
virtual const char * GetServiceRequestName() const override
SignPayloadRequest & WithPayload(Aws::Utils::ByteBuffer &&value)
void SetPayload(Aws::Utils::ByteBuffer &&value)
void SetPayloadFormat(Aws::String &&value)
SignPayloadRequest & WithProfileOwner(const Aws::String &value)
AWS_SIGNER_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String