Class AccountPolicyReference.Builder
java.lang.Object
software.amazon.awscdk.services.logs.AccountPolicyReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AccountPolicyReference>
- Enclosing interface:
AccountPolicyReference
@Stability(Stable)
public static final class AccountPolicyReference.Builder
extends Object
implements software.amazon.jsii.Builder<AccountPolicyReference>
A builder for
AccountPolicyReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofAccountPolicyReference.getAccountId()
build()
Builds the configured instance.policyName
(String policyName) Sets the value ofAccountPolicyReference.getPolicyName()
policyType
(String policyType) Sets the value ofAccountPolicyReference.getPolicyType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountId
Sets the value ofAccountPolicyReference.getAccountId()
- Parameters:
accountId
- The AccountId of the AccountPolicy resource. This parameter is required.- Returns:
this
-
policyName
Sets the value ofAccountPolicyReference.getPolicyName()
- Parameters:
policyName
- The PolicyName of the AccountPolicy resource. This parameter is required.- Returns:
this
-
policyType
Sets the value ofAccountPolicyReference.getPolicyType()
- Parameters:
policyType
- The PolicyType of the AccountPolicy resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AccountPolicyReference>
- Returns:
- a new instance of
AccountPolicyReference
- Throws:
NullPointerException
- if any required attribute was not provided
-