/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace signer { namespace Model { /** */ class RevokeSignatureRequest : public SignerRequest { public: AWS_SIGNER_API RevokeSignatureRequest(); // 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 "RevokeSignature"; } AWS_SIGNER_API Aws::String SerializePayload() const override; /** *

ID of the signing job to be revoked.

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

ID of the signing job to be revoked.

*/ inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; } /** *

ID of the signing job to be revoked.

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

ID of the signing job to be revoked.

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

ID of the signing job to be revoked.

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

ID of the signing job to be revoked.

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

ID of the signing job to be revoked.

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

ID of the signing job to be revoked.

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

AWS account ID of the job owner.

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

AWS account ID of the job owner.

*/ inline bool JobOwnerHasBeenSet() const { return m_jobOwnerHasBeenSet; } /** *

AWS account ID of the job owner.

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

AWS account ID of the job owner.

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

AWS account ID of the job owner.

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

AWS account ID of the job owner.

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

AWS account ID of the job owner.

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

AWS account ID of the job owner.

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

The reason for revoking the signing job.

*/ inline const Aws::String& GetReason() const{ return m_reason; } /** *

The reason for revoking the signing job.

*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *

The reason for revoking the signing job.

*/ inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *

The reason for revoking the signing job.

*/ inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *

The reason for revoking the signing job.

*/ inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } /** *

The reason for revoking the signing job.

*/ inline RevokeSignatureRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;} /** *

The reason for revoking the signing job.

*/ inline RevokeSignatureRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} /** *

The reason for revoking the signing job.

*/ inline RevokeSignatureRequest& WithReason(const char* value) { SetReason(value); return *this;} private: Aws::String m_jobId; bool m_jobIdHasBeenSet = false; Aws::String m_jobOwner; bool m_jobOwnerHasBeenSet = false; Aws::String m_reason; bool m_reasonHasBeenSet = false; }; } // namespace Model } // namespace signer } // namespace Aws