Class CfnAppMonitor.ResourcePolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.rum.CfnAppMonitor.ResourcePolicyProperty.Builder
- All Implemented Interfaces:
 software.amazon.jsii.Builder<CfnAppMonitor.ResourcePolicyProperty>
- Enclosing interface:
 CfnAppMonitor.ResourcePolicyProperty
@Stability(Stable)
public static final class CfnAppMonitor.ResourcePolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAppMonitor.ResourcePolicyProperty>
A builder for 
CfnAppMonitor.ResourcePolicyProperty- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.policyDocument(String policyDocument) Sets the value ofCfnAppMonitor.ResourcePolicyProperty.getPolicyDocument()policyRevisionId(String policyRevisionId) Sets the value ofCfnAppMonitor.ResourcePolicyProperty.getPolicyRevisionId() 
- 
Constructor Details
- 
Builder
public Builder() 
 - 
 - 
Method Details
- 
policyDocument
@Stability(Stable) public CfnAppMonitor.ResourcePolicyProperty.Builder policyDocument(String policyDocument) Sets the value ofCfnAppMonitor.ResourcePolicyProperty.getPolicyDocument()- Parameters:
 policyDocument- The JSON to use as the resource policy. This parameter is required. The document can be up to 4 KB in size. For more information about the contents and syntax for this policy, see Using resource-based policies with CloudWatch RUM .- Returns:
 this
 - 
policyRevisionId
@Stability(Stable) public CfnAppMonitor.ResourcePolicyProperty.Builder policyRevisionId(String policyRevisionId) Sets the value ofCfnAppMonitor.ResourcePolicyProperty.getPolicyRevisionId()- Parameters:
 policyRevisionId- A string value that you can use to conditionally update your policy. You can provide the revision ID of your existing policy to make mutating requests against that policy.When you assign a policy revision ID, then later requests about that policy will be rejected with an
InvalidPolicyRevisionIdExceptionerror if they don't provide the correct current revision ID.- Returns:
 this
 - 
build
Builds the configured instance.- Specified by:
 buildin interfacesoftware.amazon.jsii.Builder<CfnAppMonitor.ResourcePolicyProperty>- Returns:
 - a new instance of 
CfnAppMonitor.ResourcePolicyProperty - Throws:
 NullPointerException- if any required attribute was not provided
 
 -