/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Permissions designate which private CA actions can be performed by an Amazon
* Web Services service or entity. In order for ACM to automatically renew private
* certificates, you must give the ACM service principal all available permissions
* (IssueCertificate
, GetCertificate
, and
* ListPermissions
). Permissions can be assigned with the CreatePermission
* action, removed with the DeletePermission
* action, and listed with the ListPermissions
* action.See Also:
AWS
* API Reference
The Amazon Resource Number (ARN) of the private CA from which the permission * was issued.
*/ inline const Aws::String& GetCertificateAuthorityArn() const{ return m_certificateAuthorityArn; } /** *The Amazon Resource Number (ARN) of the private CA from which the permission * was issued.
*/ inline bool CertificateAuthorityArnHasBeenSet() const { return m_certificateAuthorityArnHasBeenSet; } /** *The Amazon Resource Number (ARN) of the private CA from which the permission * was issued.
*/ inline void SetCertificateAuthorityArn(const Aws::String& value) { m_certificateAuthorityArnHasBeenSet = true; m_certificateAuthorityArn = value; } /** *The Amazon Resource Number (ARN) of the private CA from which the permission * was issued.
*/ inline void SetCertificateAuthorityArn(Aws::String&& value) { m_certificateAuthorityArnHasBeenSet = true; m_certificateAuthorityArn = std::move(value); } /** *The Amazon Resource Number (ARN) of the private CA from which the permission * was issued.
*/ inline void SetCertificateAuthorityArn(const char* value) { m_certificateAuthorityArnHasBeenSet = true; m_certificateAuthorityArn.assign(value); } /** *The Amazon Resource Number (ARN) of the private CA from which the permission * was issued.
*/ inline Permission& WithCertificateAuthorityArn(const Aws::String& value) { SetCertificateAuthorityArn(value); return *this;} /** *The Amazon Resource Number (ARN) of the private CA from which the permission * was issued.
*/ inline Permission& WithCertificateAuthorityArn(Aws::String&& value) { SetCertificateAuthorityArn(std::move(value)); return *this;} /** *The Amazon Resource Number (ARN) of the private CA from which the permission * was issued.
*/ inline Permission& WithCertificateAuthorityArn(const char* value) { SetCertificateAuthorityArn(value); return *this;} /** *The time at which the permission was created.
*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *The time at which the permission was created.
*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *The time at which the permission was created.
*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *The time at which the permission was created.
*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *The time at which the permission was created.
*/ inline Permission& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *The time at which the permission was created.
*/ inline Permission& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *The Amazon Web Services service or entity that holds the permission. At this
* time, the only valid principal is acm.amazonaws.com
.
The Amazon Web Services service or entity that holds the permission. At this
* time, the only valid principal is acm.amazonaws.com
.
The Amazon Web Services service or entity that holds the permission. At this
* time, the only valid principal is acm.amazonaws.com
.
The Amazon Web Services service or entity that holds the permission. At this
* time, the only valid principal is acm.amazonaws.com
.
The Amazon Web Services service or entity that holds the permission. At this
* time, the only valid principal is acm.amazonaws.com
.
The Amazon Web Services service or entity that holds the permission. At this
* time, the only valid principal is acm.amazonaws.com
.
The Amazon Web Services service or entity that holds the permission. At this
* time, the only valid principal is acm.amazonaws.com
.
The Amazon Web Services service or entity that holds the permission. At this
* time, the only valid principal is acm.amazonaws.com
.
The ID of the account that assigned the permission.
*/ inline const Aws::String& GetSourceAccount() const{ return m_sourceAccount; } /** *The ID of the account that assigned the permission.
*/ inline bool SourceAccountHasBeenSet() const { return m_sourceAccountHasBeenSet; } /** *The ID of the account that assigned the permission.
*/ inline void SetSourceAccount(const Aws::String& value) { m_sourceAccountHasBeenSet = true; m_sourceAccount = value; } /** *The ID of the account that assigned the permission.
*/ inline void SetSourceAccount(Aws::String&& value) { m_sourceAccountHasBeenSet = true; m_sourceAccount = std::move(value); } /** *The ID of the account that assigned the permission.
*/ inline void SetSourceAccount(const char* value) { m_sourceAccountHasBeenSet = true; m_sourceAccount.assign(value); } /** *The ID of the account that assigned the permission.
*/ inline Permission& WithSourceAccount(const Aws::String& value) { SetSourceAccount(value); return *this;} /** *The ID of the account that assigned the permission.
*/ inline Permission& WithSourceAccount(Aws::String&& value) { SetSourceAccount(std::move(value)); return *this;} /** *The ID of the account that assigned the permission.
*/ inline Permission& WithSourceAccount(const char* value) { SetSourceAccount(value); return *this;} /** *The private CA actions that can be performed by the designated Amazon Web * Services service.
*/ inline const Aws::VectorThe private CA actions that can be performed by the designated Amazon Web * Services service.
*/ inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; } /** *The private CA actions that can be performed by the designated Amazon Web * Services service.
*/ inline void SetActions(const Aws::VectorThe private CA actions that can be performed by the designated Amazon Web * Services service.
*/ inline void SetActions(Aws::VectorThe private CA actions that can be performed by the designated Amazon Web * Services service.
*/ inline Permission& WithActions(const Aws::VectorThe private CA actions that can be performed by the designated Amazon Web * Services service.
*/ inline Permission& WithActions(Aws::VectorThe private CA actions that can be performed by the designated Amazon Web * Services service.
*/ inline Permission& AddActions(const ActionType& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; } /** *The private CA actions that can be performed by the designated Amazon Web * Services service.
*/ inline Permission& AddActions(ActionType&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; } /** *The name of the policy that is associated with the permission.
*/ inline const Aws::String& GetPolicy() const{ return m_policy; } /** *The name of the policy that is associated with the permission.
*/ inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; } /** *The name of the policy that is associated with the permission.
*/ inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; } /** *The name of the policy that is associated with the permission.
*/ inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); } /** *The name of the policy that is associated with the permission.
*/ inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); } /** *The name of the policy that is associated with the permission.
*/ inline Permission& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;} /** *The name of the policy that is associated with the permission.
*/ inline Permission& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;} /** *The name of the policy that is associated with the permission.
*/ inline Permission& WithPolicy(const char* value) { SetPolicy(value); return *this;} private: Aws::String m_certificateAuthorityArn; bool m_certificateAuthorityArnHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::String m_principal; bool m_principalHasBeenSet = false; Aws::String m_sourceAccount; bool m_sourceAccountHasBeenSet = false; Aws::Vector