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

The S3 bucket that contains the object to sign or a BLOB that contains your * raw code.

*/ inline const Source& GetSource() const{ return m_source; } /** *

The S3 bucket that contains the object to sign or a BLOB that contains your * raw code.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

The S3 bucket that contains the object to sign or a BLOB that contains your * raw code.

*/ inline void SetSource(const Source& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

The S3 bucket that contains the object to sign or a BLOB that contains your * raw code.

*/ inline void SetSource(Source&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

The S3 bucket that contains the object to sign or a BLOB that contains your * raw code.

*/ inline StartSigningJobRequest& WithSource(const Source& value) { SetSource(value); return *this;} /** *

The S3 bucket that contains the object to sign or a BLOB that contains your * raw code.

*/ inline StartSigningJobRequest& WithSource(Source&& value) { SetSource(std::move(value)); return *this;} /** *

The S3 bucket in which to save your signed object. The destination contains * the name of your bucket and an optional prefix.

*/ inline const Destination& GetDestination() const{ return m_destination; } /** *

The S3 bucket in which to save your signed object. The destination contains * the name of your bucket and an optional prefix.

*/ inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; } /** *

The S3 bucket in which to save your signed object. The destination contains * the name of your bucket and an optional prefix.

*/ inline void SetDestination(const Destination& value) { m_destinationHasBeenSet = true; m_destination = value; } /** *

The S3 bucket in which to save your signed object. The destination contains * the name of your bucket and an optional prefix.

*/ inline void SetDestination(Destination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); } /** *

The S3 bucket in which to save your signed object. The destination contains * the name of your bucket and an optional prefix.

*/ inline StartSigningJobRequest& WithDestination(const Destination& value) { SetDestination(value); return *this;} /** *

The S3 bucket in which to save your signed object. The destination contains * the name of your bucket and an optional prefix.

*/ inline StartSigningJobRequest& WithDestination(Destination&& value) { SetDestination(std::move(value)); return *this;} /** *

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 StartSigningJobRequest& WithProfileName(const Aws::String& value) { SetProfileName(value); return *this;} /** *

The name of the signing profile.

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

The name of the signing profile.

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

String that identifies the signing request. All calls after the first that * use this token return the same response as the first call.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

String that identifies the signing request. All calls after the first that * use this token return the same response as the first call.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

String that identifies the signing request. All calls after the first that * use this token return the same response as the first call.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

String that identifies the signing request. All calls after the first that * use this token return the same response as the first call.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

String that identifies the signing request. All calls after the first that * use this token return the same response as the first call.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

String that identifies the signing request. All calls after the first that * use this token return the same response as the first call.

*/ inline StartSigningJobRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

String that identifies the signing request. All calls after the first that * use this token return the same response as the first call.

*/ inline StartSigningJobRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

String that identifies the signing request. All calls after the first that * use this token return the same response as the first call.

*/ inline StartSigningJobRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *

The AWS account ID of the signing profile owner.

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

The AWS account ID of the signing profile owner.

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

The AWS account ID of the signing profile owner.

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

The AWS account ID of the signing profile owner.

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

The AWS account ID of the signing profile owner.

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

The AWS account ID of the signing profile owner.

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

The AWS account ID of the signing profile owner.

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

The AWS account ID of the signing profile owner.

*/ inline StartSigningJobRequest& WithProfileOwner(const char* value) { SetProfileOwner(value); return *this;} private: Source m_source; bool m_sourceHasBeenSet = false; Destination m_destination; bool m_destinationHasBeenSet = false; Aws::String m_profileName; bool m_profileNameHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; Aws::String m_profileOwner; bool m_profileOwnerHasBeenSet = false; }; } // namespace Model } // namespace signer } // namespace Aws