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

The timestamp of the signature that validates the profile or job.

*/ inline const Aws::Utils::DateTime& GetSignatureTimestamp() const{ return m_signatureTimestamp; } /** *

The timestamp of the signature that validates the profile or job.

*/ inline bool SignatureTimestampHasBeenSet() const { return m_signatureTimestampHasBeenSet; } /** *

The timestamp of the signature that validates the profile or job.

*/ inline void SetSignatureTimestamp(const Aws::Utils::DateTime& value) { m_signatureTimestampHasBeenSet = true; m_signatureTimestamp = value; } /** *

The timestamp of the signature that validates the profile or job.

*/ inline void SetSignatureTimestamp(Aws::Utils::DateTime&& value) { m_signatureTimestampHasBeenSet = true; m_signatureTimestamp = std::move(value); } /** *

The timestamp of the signature that validates the profile or job.

*/ inline GetRevocationStatusRequest& WithSignatureTimestamp(const Aws::Utils::DateTime& value) { SetSignatureTimestamp(value); return *this;} /** *

The timestamp of the signature that validates the profile or job.

*/ inline GetRevocationStatusRequest& WithSignatureTimestamp(Aws::Utils::DateTime&& value) { SetSignatureTimestamp(std::move(value)); return *this;} /** *

The ID of a signing platform.

*/ inline const Aws::String& GetPlatformId() const{ return m_platformId; } /** *

The ID of a signing platform.

*/ inline bool PlatformIdHasBeenSet() const { return m_platformIdHasBeenSet; } /** *

The ID of a signing platform.

*/ inline void SetPlatformId(const Aws::String& value) { m_platformIdHasBeenSet = true; m_platformId = value; } /** *

The ID of a signing platform.

*/ inline void SetPlatformId(Aws::String&& value) { m_platformIdHasBeenSet = true; m_platformId = std::move(value); } /** *

The ID of a signing platform.

*/ inline void SetPlatformId(const char* value) { m_platformIdHasBeenSet = true; m_platformId.assign(value); } /** *

The ID of a signing platform.

*/ inline GetRevocationStatusRequest& WithPlatformId(const Aws::String& value) { SetPlatformId(value); return *this;} /** *

The ID of a signing platform.

*/ inline GetRevocationStatusRequest& WithPlatformId(Aws::String&& value) { SetPlatformId(std::move(value)); return *this;} /** *

The ID of a signing platform.

*/ inline GetRevocationStatusRequest& WithPlatformId(const char* value) { SetPlatformId(value); return *this;} /** *

The version of a signing profile.

*/ inline const Aws::String& GetProfileVersionArn() const{ return m_profileVersionArn; } /** *

The version of a signing profile.

*/ inline bool ProfileVersionArnHasBeenSet() const { return m_profileVersionArnHasBeenSet; } /** *

The version of a signing profile.

*/ inline void SetProfileVersionArn(const Aws::String& value) { m_profileVersionArnHasBeenSet = true; m_profileVersionArn = value; } /** *

The version of a signing profile.

*/ inline void SetProfileVersionArn(Aws::String&& value) { m_profileVersionArnHasBeenSet = true; m_profileVersionArn = std::move(value); } /** *

The version of a signing profile.

*/ inline void SetProfileVersionArn(const char* value) { m_profileVersionArnHasBeenSet = true; m_profileVersionArn.assign(value); } /** *

The version of a signing profile.

*/ inline GetRevocationStatusRequest& WithProfileVersionArn(const Aws::String& value) { SetProfileVersionArn(value); return *this;} /** *

The version of a signing profile.

*/ inline GetRevocationStatusRequest& WithProfileVersionArn(Aws::String&& value) { SetProfileVersionArn(std::move(value)); return *this;} /** *

The version of a signing profile.

*/ inline GetRevocationStatusRequest& WithProfileVersionArn(const char* value) { SetProfileVersionArn(value); return *this;} /** *

The ARN of a signing job.

*/ inline const Aws::String& GetJobArn() const{ return m_jobArn; } /** *

The ARN of a signing job.

*/ inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; } /** *

The ARN of a signing job.

*/ inline void SetJobArn(const Aws::String& value) { m_jobArnHasBeenSet = true; m_jobArn = value; } /** *

The ARN of a signing job.

*/ inline void SetJobArn(Aws::String&& value) { m_jobArnHasBeenSet = true; m_jobArn = std::move(value); } /** *

The ARN of a signing job.

*/ inline void SetJobArn(const char* value) { m_jobArnHasBeenSet = true; m_jobArn.assign(value); } /** *

The ARN of a signing job.

*/ inline GetRevocationStatusRequest& WithJobArn(const Aws::String& value) { SetJobArn(value); return *this;} /** *

The ARN of a signing job.

*/ inline GetRevocationStatusRequest& WithJobArn(Aws::String&& value) { SetJobArn(std::move(value)); return *this;} /** *

The ARN of a signing job.

*/ inline GetRevocationStatusRequest& WithJobArn(const char* value) { SetJobArn(value); return *this;} /** *

A list of composite signed hashes that identify certificates.

A * certificate identifier consists of a subject certificate TBS hash (signed by the * parent CA) combined with a parent CA TBS hash (signed by the parent CA’s CA). * Root certificates are defined as their own CA.

*/ inline const Aws::Vector& GetCertificateHashes() const{ return m_certificateHashes; } /** *

A list of composite signed hashes that identify certificates.

A * certificate identifier consists of a subject certificate TBS hash (signed by the * parent CA) combined with a parent CA TBS hash (signed by the parent CA’s CA). * Root certificates are defined as their own CA.

*/ inline bool CertificateHashesHasBeenSet() const { return m_certificateHashesHasBeenSet; } /** *

A list of composite signed hashes that identify certificates.

A * certificate identifier consists of a subject certificate TBS hash (signed by the * parent CA) combined with a parent CA TBS hash (signed by the parent CA’s CA). * Root certificates are defined as their own CA.

*/ inline void SetCertificateHashes(const Aws::Vector& value) { m_certificateHashesHasBeenSet = true; m_certificateHashes = value; } /** *

A list of composite signed hashes that identify certificates.

A * certificate identifier consists of a subject certificate TBS hash (signed by the * parent CA) combined with a parent CA TBS hash (signed by the parent CA’s CA). * Root certificates are defined as their own CA.

*/ inline void SetCertificateHashes(Aws::Vector&& value) { m_certificateHashesHasBeenSet = true; m_certificateHashes = std::move(value); } /** *

A list of composite signed hashes that identify certificates.

A * certificate identifier consists of a subject certificate TBS hash (signed by the * parent CA) combined with a parent CA TBS hash (signed by the parent CA’s CA). * Root certificates are defined as their own CA.

*/ inline GetRevocationStatusRequest& WithCertificateHashes(const Aws::Vector& value) { SetCertificateHashes(value); return *this;} /** *

A list of composite signed hashes that identify certificates.

A * certificate identifier consists of a subject certificate TBS hash (signed by the * parent CA) combined with a parent CA TBS hash (signed by the parent CA’s CA). * Root certificates are defined as their own CA.

*/ inline GetRevocationStatusRequest& WithCertificateHashes(Aws::Vector&& value) { SetCertificateHashes(std::move(value)); return *this;} /** *

A list of composite signed hashes that identify certificates.

A * certificate identifier consists of a subject certificate TBS hash (signed by the * parent CA) combined with a parent CA TBS hash (signed by the parent CA’s CA). * Root certificates are defined as their own CA.

*/ inline GetRevocationStatusRequest& AddCertificateHashes(const Aws::String& value) { m_certificateHashesHasBeenSet = true; m_certificateHashes.push_back(value); return *this; } /** *

A list of composite signed hashes that identify certificates.

A * certificate identifier consists of a subject certificate TBS hash (signed by the * parent CA) combined with a parent CA TBS hash (signed by the parent CA’s CA). * Root certificates are defined as their own CA.

*/ inline GetRevocationStatusRequest& AddCertificateHashes(Aws::String&& value) { m_certificateHashesHasBeenSet = true; m_certificateHashes.push_back(std::move(value)); return *this; } /** *

A list of composite signed hashes that identify certificates.

A * certificate identifier consists of a subject certificate TBS hash (signed by the * parent CA) combined with a parent CA TBS hash (signed by the parent CA’s CA). * Root certificates are defined as their own CA.

*/ inline GetRevocationStatusRequest& AddCertificateHashes(const char* value) { m_certificateHashesHasBeenSet = true; m_certificateHashes.push_back(value); return *this; } private: Aws::Utils::DateTime m_signatureTimestamp; bool m_signatureTimestampHasBeenSet = false; Aws::String m_platformId; bool m_platformIdHasBeenSet = false; Aws::String m_profileVersionArn; bool m_profileVersionArnHasBeenSet = false; Aws::String m_jobArn; bool m_jobArnHasBeenSet = false; Aws::Vector m_certificateHashes; bool m_certificateHashesHasBeenSet = false; }; } // namespace Model } // namespace signer } // namespace Aws