/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace signer { namespace Model { class SignPayloadResult { public: AWS_SIGNER_API SignPayloadResult(); AWS_SIGNER_API SignPayloadResult(const Aws::AmazonWebServiceResult& result); AWS_SIGNER_API SignPayloadResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Unique identifier of the signing job.

*/ inline const Aws::String& GetJobId() const{ return m_jobId; } /** *

Unique identifier of the signing job.

*/ inline void SetJobId(const Aws::String& value) { m_jobId = value; } /** *

Unique identifier of the signing job.

*/ inline void SetJobId(Aws::String&& value) { m_jobId = std::move(value); } /** *

Unique identifier of the signing job.

*/ inline void SetJobId(const char* value) { m_jobId.assign(value); } /** *

Unique identifier of the signing job.

*/ inline SignPayloadResult& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} /** *

Unique identifier of the signing job.

*/ inline SignPayloadResult& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} /** *

Unique identifier of the signing job.

*/ inline SignPayloadResult& WithJobId(const char* value) { SetJobId(value); return *this;} /** *

The AWS account ID of the job owner.

*/ inline const Aws::String& GetJobOwner() const{ return m_jobOwner; } /** *

The AWS account ID of the job owner.

*/ inline void SetJobOwner(const Aws::String& value) { m_jobOwner = value; } /** *

The AWS account ID of the job owner.

*/ inline void SetJobOwner(Aws::String&& value) { m_jobOwner = std::move(value); } /** *

The AWS account ID of the job owner.

*/ inline void SetJobOwner(const char* value) { m_jobOwner.assign(value); } /** *

The AWS account ID of the job owner.

*/ inline SignPayloadResult& WithJobOwner(const Aws::String& value) { SetJobOwner(value); return *this;} /** *

The AWS account ID of the job owner.

*/ inline SignPayloadResult& WithJobOwner(Aws::String&& value) { SetJobOwner(std::move(value)); return *this;} /** *

The AWS account ID of the job owner.

*/ inline SignPayloadResult& WithJobOwner(const char* value) { SetJobOwner(value); return *this;} /** *

Information including the signing profile ARN and the signing job ID. Clients * use metadata to signature records, for example, as annotations added to the * signature manifest inside an OCI registry.

*/ inline const Aws::Map& GetMetadata() const{ return m_metadata; } /** *

Information including the signing profile ARN and the signing job ID. Clients * use metadata to signature records, for example, as annotations added to the * signature manifest inside an OCI registry.

*/ inline void SetMetadata(const Aws::Map& value) { m_metadata = value; } /** *

Information including the signing profile ARN and the signing job ID. Clients * use metadata to signature records, for example, as annotations added to the * signature manifest inside an OCI registry.

*/ inline void SetMetadata(Aws::Map&& value) { m_metadata = std::move(value); } /** *

Information including the signing profile ARN and the signing job ID. Clients * use metadata to signature records, for example, as annotations added to the * signature manifest inside an OCI registry.

*/ inline SignPayloadResult& WithMetadata(const Aws::Map& value) { SetMetadata(value); return *this;} /** *

Information including the signing profile ARN and the signing job ID. Clients * use metadata to signature records, for example, as annotations added to the * signature manifest inside an OCI registry.

*/ inline SignPayloadResult& WithMetadata(Aws::Map&& value) { SetMetadata(std::move(value)); return *this;} /** *

Information including the signing profile ARN and the signing job ID. Clients * use metadata to signature records, for example, as annotations added to the * signature manifest inside an OCI registry.

*/ inline SignPayloadResult& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadata.emplace(key, value); return *this; } /** *

Information including the signing profile ARN and the signing job ID. Clients * use metadata to signature records, for example, as annotations added to the * signature manifest inside an OCI registry.

*/ inline SignPayloadResult& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadata.emplace(std::move(key), value); return *this; } /** *

Information including the signing profile ARN and the signing job ID. Clients * use metadata to signature records, for example, as annotations added to the * signature manifest inside an OCI registry.

*/ inline SignPayloadResult& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadata.emplace(key, std::move(value)); return *this; } /** *

Information including the signing profile ARN and the signing job ID. Clients * use metadata to signature records, for example, as annotations added to the * signature manifest inside an OCI registry.

*/ inline SignPayloadResult& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadata.emplace(std::move(key), std::move(value)); return *this; } /** *

Information including the signing profile ARN and the signing job ID. Clients * use metadata to signature records, for example, as annotations added to the * signature manifest inside an OCI registry.

*/ inline SignPayloadResult& AddMetadata(const char* key, Aws::String&& value) { m_metadata.emplace(key, std::move(value)); return *this; } /** *

Information including the signing profile ARN and the signing job ID. Clients * use metadata to signature records, for example, as annotations added to the * signature manifest inside an OCI registry.

*/ inline SignPayloadResult& AddMetadata(Aws::String&& key, const char* value) { m_metadata.emplace(std::move(key), value); return *this; } /** *

Information including the signing profile ARN and the signing job ID. Clients * use metadata to signature records, for example, as annotations added to the * signature manifest inside an OCI registry.

*/ inline SignPayloadResult& AddMetadata(const char* key, const char* value) { m_metadata.emplace(key, value); return *this; } /** *

A cryptographic signature.

*/ inline const Aws::Utils::ByteBuffer& GetSignature() const{ return m_signature; } /** *

A cryptographic signature.

*/ inline void SetSignature(const Aws::Utils::ByteBuffer& value) { m_signature = value; } /** *

A cryptographic signature.

*/ inline void SetSignature(Aws::Utils::ByteBuffer&& value) { m_signature = std::move(value); } /** *

A cryptographic signature.

*/ inline SignPayloadResult& WithSignature(const Aws::Utils::ByteBuffer& value) { SetSignature(value); return *this;} /** *

A cryptographic signature.

*/ inline SignPayloadResult& WithSignature(Aws::Utils::ByteBuffer&& value) { SetSignature(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline SignPayloadResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline SignPayloadResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline SignPayloadResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_jobId; Aws::String m_jobOwner; Aws::Map m_metadata; Aws::Utils::ByteBuffer m_signature; Aws::String m_requestId; }; } // namespace Model } // namespace signer } // namespace Aws