/** * 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 AddProfilePermissionRequest : public SignerRequest { public: AWS_SIGNER_API AddProfilePermissionRequest(); // 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 "AddProfilePermission"; } AWS_SIGNER_API Aws::String SerializePayload() const override; /** *

The human-readable name of the signing profile.

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

The human-readable name of the signing profile.

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

The human-readable name of the signing profile.

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

The human-readable name of the signing profile.

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

The human-readable name of the signing profile.

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

The human-readable name of the signing profile.

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

The human-readable name of the signing profile.

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

The human-readable name of the signing profile.

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

The version of the signing profile.

*/ inline const Aws::String& GetProfileVersion() const{ return m_profileVersion; } /** *

The version of the signing profile.

*/ inline bool ProfileVersionHasBeenSet() const { return m_profileVersionHasBeenSet; } /** *

The version of the signing profile.

*/ inline void SetProfileVersion(const Aws::String& value) { m_profileVersionHasBeenSet = true; m_profileVersion = value; } /** *

The version of the signing profile.

*/ inline void SetProfileVersion(Aws::String&& value) { m_profileVersionHasBeenSet = true; m_profileVersion = std::move(value); } /** *

The version of the signing profile.

*/ inline void SetProfileVersion(const char* value) { m_profileVersionHasBeenSet = true; m_profileVersion.assign(value); } /** *

The version of the signing profile.

*/ inline AddProfilePermissionRequest& WithProfileVersion(const Aws::String& value) { SetProfileVersion(value); return *this;} /** *

The version of the signing profile.

*/ inline AddProfilePermissionRequest& WithProfileVersion(Aws::String&& value) { SetProfileVersion(std::move(value)); return *this;} /** *

The version of the signing profile.

*/ inline AddProfilePermissionRequest& WithProfileVersion(const char* value) { SetProfileVersion(value); return *this;} /** *

The AWS Signer action permitted as part of cross-account permissions.

*/ inline const Aws::String& GetAction() const{ return m_action; } /** *

The AWS Signer action permitted as part of cross-account permissions.

*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *

The AWS Signer action permitted as part of cross-account permissions.

*/ inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; } /** *

The AWS Signer action permitted as part of cross-account permissions.

*/ inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *

The AWS Signer action permitted as part of cross-account permissions.

*/ inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); } /** *

The AWS Signer action permitted as part of cross-account permissions.

*/ inline AddProfilePermissionRequest& WithAction(const Aws::String& value) { SetAction(value); return *this;} /** *

The AWS Signer action permitted as part of cross-account permissions.

*/ inline AddProfilePermissionRequest& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;} /** *

The AWS Signer action permitted as part of cross-account permissions.

*/ inline AddProfilePermissionRequest& WithAction(const char* value) { SetAction(value); return *this;} /** *

The AWS principal receiving cross-account permissions. This may be an IAM * role or another AWS account ID.

*/ inline const Aws::String& GetPrincipal() const{ return m_principal; } /** *

The AWS principal receiving cross-account permissions. This may be an IAM * role or another AWS account ID.

*/ inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; } /** *

The AWS principal receiving cross-account permissions. This may be an IAM * role or another AWS account ID.

*/ inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; } /** *

The AWS principal receiving cross-account permissions. This may be an IAM * role or another AWS account ID.

*/ inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); } /** *

The AWS principal receiving cross-account permissions. This may be an IAM * role or another AWS account ID.

*/ inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); } /** *

The AWS principal receiving cross-account permissions. This may be an IAM * role or another AWS account ID.

*/ inline AddProfilePermissionRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;} /** *

The AWS principal receiving cross-account permissions. This may be an IAM * role or another AWS account ID.

*/ inline AddProfilePermissionRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;} /** *

The AWS principal receiving cross-account permissions. This may be an IAM * role or another AWS account ID.

*/ inline AddProfilePermissionRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;} /** *

A unique identifier for the current profile revision.

*/ inline const Aws::String& GetRevisionId() const{ return m_revisionId; } /** *

A unique identifier for the current profile revision.

*/ inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; } /** *

A unique identifier for the current profile revision.

*/ inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; } /** *

A unique identifier for the current profile revision.

*/ inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); } /** *

A unique identifier for the current profile revision.

*/ inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); } /** *

A unique identifier for the current profile revision.

*/ inline AddProfilePermissionRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;} /** *

A unique identifier for the current profile revision.

*/ inline AddProfilePermissionRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;} /** *

A unique identifier for the current profile revision.

*/ inline AddProfilePermissionRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;} /** *

A unique identifier for the cross-account permission statement.

*/ inline const Aws::String& GetStatementId() const{ return m_statementId; } /** *

A unique identifier for the cross-account permission statement.

*/ inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; } /** *

A unique identifier for the cross-account permission statement.

*/ inline void SetStatementId(const Aws::String& value) { m_statementIdHasBeenSet = true; m_statementId = value; } /** *

A unique identifier for the cross-account permission statement.

*/ inline void SetStatementId(Aws::String&& value) { m_statementIdHasBeenSet = true; m_statementId = std::move(value); } /** *

A unique identifier for the cross-account permission statement.

*/ inline void SetStatementId(const char* value) { m_statementIdHasBeenSet = true; m_statementId.assign(value); } /** *

A unique identifier for the cross-account permission statement.

*/ inline AddProfilePermissionRequest& WithStatementId(const Aws::String& value) { SetStatementId(value); return *this;} /** *

A unique identifier for the cross-account permission statement.

*/ inline AddProfilePermissionRequest& WithStatementId(Aws::String&& value) { SetStatementId(std::move(value)); return *this;} /** *

A unique identifier for the cross-account permission statement.

*/ inline AddProfilePermissionRequest& WithStatementId(const char* value) { SetStatementId(value); return *this;} private: Aws::String m_profileName; bool m_profileNameHasBeenSet = false; Aws::String m_profileVersion; bool m_profileVersionHasBeenSet = false; Aws::String m_action; bool m_actionHasBeenSet = false; Aws::String m_principal; bool m_principalHasBeenSet = false; Aws::String m_revisionId; bool m_revisionIdHasBeenSet = false; Aws::String m_statementId; bool m_statementIdHasBeenSet = false; }; } // namespace Model } // namespace signer } // namespace Aws