/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace signer { namespace Model { /** */ class SignPayloadRequest : public SignerRequest { public: AWS_SIGNER_API SignPayloadRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "SignPayload"; } AWS_SIGNER_API Aws::String SerializePayload() const override; /** *

The name of the signing profile.

*/ inline const Aws::String& GetProfileName() const{ return m_profileName; } /** *

The name of the signing profile.

*/ inline bool ProfileNameHasBeenSet() const { return m_profileNameHasBeenSet; } /** *

The name of the signing profile.

*/ inline void SetProfileName(const Aws::String& value) { m_profileNameHasBeenSet = true; m_profileName = value; } /** *

The name of the signing profile.

*/ inline void SetProfileName(Aws::String&& value) { m_profileNameHasBeenSet = true; m_profileName = std::move(value); } /** *

The name of the signing profile.

*/ inline void SetProfileName(const char* value) { m_profileNameHasBeenSet = true; m_profileName.assign(value); } /** *

The name of the signing profile.

*/ inline SignPayloadRequest& WithProfileName(const Aws::String& value) { SetProfileName(value); return *this;} /** *

The name of the signing profile.

*/ inline SignPayloadRequest& WithProfileName(Aws::String&& value) { SetProfileName(std::move(value)); return *this;} /** *

The name of the signing profile.

*/ inline SignPayloadRequest& WithProfileName(const char* value) { SetProfileName(value); return *this;} /** *

The AWS account ID of the profile owner.

*/ inline const Aws::String& GetProfileOwner() const{ return m_profileOwner; } /** *

The AWS account ID of the profile owner.

*/ inline bool ProfileOwnerHasBeenSet() const { return m_profileOwnerHasBeenSet; } /** *

The AWS account ID of the profile owner.

*/ inline void SetProfileOwner(const Aws::String& value) { m_profileOwnerHasBeenSet = true; m_profileOwner = value; } /** *

The AWS account ID of the profile owner.

*/ inline void SetProfileOwner(Aws::String&& value) { m_profileOwnerHasBeenSet = true; m_profileOwner = std::move(value); } /** *

The AWS account ID of the profile owner.

*/ inline void SetProfileOwner(const char* value) { m_profileOwnerHasBeenSet = true; m_profileOwner.assign(value); } /** *

The AWS account ID of the profile owner.

*/ inline SignPayloadRequest& WithProfileOwner(const Aws::String& value) { SetProfileOwner(value); return *this;} /** *

The AWS account ID of the profile owner.

*/ inline SignPayloadRequest& WithProfileOwner(Aws::String&& value) { SetProfileOwner(std::move(value)); return *this;} /** *

The AWS account ID of the profile owner.

*/ inline SignPayloadRequest& WithProfileOwner(const char* value) { SetProfileOwner(value); return *this;} /** *

Specifies the object digest (hash) to sign.

*/ inline const Aws::Utils::ByteBuffer& GetPayload() const{ return m_payload; } /** *

Specifies the object digest (hash) to sign.

*/ inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; } /** *

Specifies the object digest (hash) to sign.

*/ inline void SetPayload(const Aws::Utils::ByteBuffer& value) { m_payloadHasBeenSet = true; m_payload = value; } /** *

Specifies the object digest (hash) to sign.

*/ inline void SetPayload(Aws::Utils::ByteBuffer&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); } /** *

Specifies the object digest (hash) to sign.

*/ inline SignPayloadRequest& WithPayload(const Aws::Utils::ByteBuffer& value) { SetPayload(value); return *this;} /** *

Specifies the object digest (hash) to sign.

*/ inline SignPayloadRequest& WithPayload(Aws::Utils::ByteBuffer&& value) { SetPayload(std::move(value)); return *this;} /** *

Payload content type

*/ inline const Aws::String& GetPayloadFormat() const{ return m_payloadFormat; } /** *

Payload content type

*/ inline bool PayloadFormatHasBeenSet() const { return m_payloadFormatHasBeenSet; } /** *

Payload content type

*/ inline void SetPayloadFormat(const Aws::String& value) { m_payloadFormatHasBeenSet = true; m_payloadFormat = value; } /** *

Payload content type

*/ inline void SetPayloadFormat(Aws::String&& value) { m_payloadFormatHasBeenSet = true; m_payloadFormat = std::move(value); } /** *

Payload content type

*/ inline void SetPayloadFormat(const char* value) { m_payloadFormatHasBeenSet = true; m_payloadFormat.assign(value); } /** *

Payload content type

*/ inline SignPayloadRequest& WithPayloadFormat(const Aws::String& value) { SetPayloadFormat(value); return *this;} /** *

Payload content type

*/ inline SignPayloadRequest& WithPayloadFormat(Aws::String&& value) { SetPayloadFormat(std::move(value)); return *this;} /** *

Payload content type

*/ inline SignPayloadRequest& WithPayloadFormat(const char* value) { SetPayloadFormat(value); return *this;} private: Aws::String m_profileName; bool m_profileNameHasBeenSet = false; Aws::String m_profileOwner; bool m_profileOwnerHasBeenSet = false; Aws::Utils::ByteBuffer m_payload; bool m_payloadHasBeenSet = false; Aws::String m_payloadFormat; bool m_payloadFormatHasBeenSet = false; }; } // namespace Model } // namespace signer } // namespace Aws