/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A cross-account permission for a signing profile.See Also:
* AWS
* API Reference
An AWS Signer action permitted as part of cross-account permissions.
*/ inline const Aws::String& GetAction() const{ return m_action; } /** *An AWS Signer action permitted as part of cross-account permissions.
*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *An AWS Signer action permitted as part of cross-account permissions.
*/ inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; } /** *An AWS Signer action permitted as part of cross-account permissions.
*/ inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *An AWS Signer action permitted as part of cross-account permissions.
*/ inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); } /** *An AWS Signer action permitted as part of cross-account permissions.
*/ inline Permission& WithAction(const Aws::String& value) { SetAction(value); return *this;} /** *An AWS Signer action permitted as part of cross-account permissions.
*/ inline Permission& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;} /** *An AWS Signer action permitted as part of cross-account permissions.
*/ inline Permission& WithAction(const char* value) { SetAction(value); return *this;} /** *The AWS principal that has been granted a cross-account permission.
*/ inline const Aws::String& GetPrincipal() const{ return m_principal; } /** *The AWS principal that has been granted a cross-account permission.
*/ inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; } /** *The AWS principal that has been granted a cross-account permission.
*/ inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; } /** *The AWS principal that has been granted a cross-account permission.
*/ inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); } /** *The AWS principal that has been granted a cross-account permission.
*/ inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); } /** *The AWS principal that has been granted a cross-account permission.
*/ inline Permission& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;} /** *The AWS principal that has been granted a cross-account permission.
*/ inline Permission& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;} /** *The AWS principal that has been granted a cross-account permission.
*/ inline Permission& WithPrincipal(const char* value) { SetPrincipal(value); return *this;} /** *A unique identifier for a cross-account permission statement.
*/ inline const Aws::String& GetStatementId() const{ return m_statementId; } /** *A unique identifier for a cross-account permission statement.
*/ inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; } /** *A unique identifier for a cross-account permission statement.
*/ inline void SetStatementId(const Aws::String& value) { m_statementIdHasBeenSet = true; m_statementId = value; } /** *A unique identifier for a cross-account permission statement.
*/ inline void SetStatementId(Aws::String&& value) { m_statementIdHasBeenSet = true; m_statementId = std::move(value); } /** *A unique identifier for a cross-account permission statement.
*/ inline void SetStatementId(const char* value) { m_statementIdHasBeenSet = true; m_statementId.assign(value); } /** *A unique identifier for a cross-account permission statement.
*/ inline Permission& WithStatementId(const Aws::String& value) { SetStatementId(value); return *this;} /** *A unique identifier for a cross-account permission statement.
*/ inline Permission& WithStatementId(Aws::String&& value) { SetStatementId(std::move(value)); return *this;} /** *A unique identifier for a cross-account permission statement.
*/ inline Permission& WithStatementId(const char* value) { SetStatementId(value); return *this;} /** *The signing profile version that a permission applies to.
*/ inline const Aws::String& GetProfileVersion() const{ return m_profileVersion; } /** *The signing profile version that a permission applies to.
*/ inline bool ProfileVersionHasBeenSet() const { return m_profileVersionHasBeenSet; } /** *The signing profile version that a permission applies to.
*/ inline void SetProfileVersion(const Aws::String& value) { m_profileVersionHasBeenSet = true; m_profileVersion = value; } /** *The signing profile version that a permission applies to.
*/ inline void SetProfileVersion(Aws::String&& value) { m_profileVersionHasBeenSet = true; m_profileVersion = std::move(value); } /** *The signing profile version that a permission applies to.
*/ inline void SetProfileVersion(const char* value) { m_profileVersionHasBeenSet = true; m_profileVersion.assign(value); } /** *The signing profile version that a permission applies to.
*/ inline Permission& WithProfileVersion(const Aws::String& value) { SetProfileVersion(value); return *this;} /** *The signing profile version that a permission applies to.
*/ inline Permission& WithProfileVersion(Aws::String&& value) { SetProfileVersion(std::move(value)); return *this;} /** *The signing profile version that a permission applies to.
*/ inline Permission& WithProfileVersion(const char* value) { SetProfileVersion(value); return *this;} private: Aws::String m_action; bool m_actionHasBeenSet = false; Aws::String m_principal; bool m_principalHasBeenSet = false; Aws::String m_statementId; bool m_statementIdHasBeenSet = false; Aws::String m_profileVersion; bool m_profileVersionHasBeenSet = false; }; } // namespace Model } // namespace signer } // namespace Aws