Class CfnSupportPermit.PermitProperty.Builder
java.lang.Object
software.amazon.awscdk.services.supportauthz.CfnSupportPermit.PermitProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSupportPermit.PermitProperty>
- Enclosing interface:
CfnSupportPermit.PermitProperty
@Stability(Stable)
public static final class CfnSupportPermit.PermitProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSupportPermit.PermitProperty>
A builder for
CfnSupportPermit.PermitProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactions(IResolvable actions) Sets the value ofCfnSupportPermit.PermitProperty.getActions()Sets the value ofCfnSupportPermit.PermitProperty.getActions()build()Builds the configured instance.conditions(List<? extends Object> conditions) Sets the value ofCfnSupportPermit.PermitProperty.getConditions()conditions(IResolvable conditions) Sets the value ofCfnSupportPermit.PermitProperty.getConditions()resources(IResolvable resources) Sets the value ofCfnSupportPermit.PermitProperty.getResources()resources(CfnSupportPermit.ResourceSetProperty resources) Sets the value ofCfnSupportPermit.PermitProperty.getResources()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actions
Sets the value ofCfnSupportPermit.PermitProperty.getActions()- Parameters:
actions- The set of actions a support permit grants. This parameter is required. Exactly one of AllActions or Actions must be provided.- Returns:
this
-
actions
@Stability(Stable) public CfnSupportPermit.PermitProperty.Builder actions(CfnSupportPermit.ActionSetProperty actions) Sets the value ofCfnSupportPermit.PermitProperty.getActions()- Parameters:
actions- The set of actions a support permit grants. This parameter is required. Exactly one of AllActions or Actions must be provided.- Returns:
this
-
resources
Sets the value ofCfnSupportPermit.PermitProperty.getResources()- Parameters:
resources- The set of resources a support permit applies to. This parameter is required. Exactly one of AllResourcesInRegion or Resources must be provided.- Returns:
this
-
resources
@Stability(Stable) public CfnSupportPermit.PermitProperty.Builder resources(CfnSupportPermit.ResourceSetProperty resources) Sets the value ofCfnSupportPermit.PermitProperty.getResources()- Parameters:
resources- The set of resources a support permit applies to. This parameter is required. Exactly one of AllResourcesInRegion or Resources must be provided.- Returns:
this
-
conditions
@Stability(Stable) public CfnSupportPermit.PermitProperty.Builder conditions(IResolvable conditions) Sets the value ofCfnSupportPermit.PermitProperty.getConditions()- Parameters:
conditions- Optional time-bound conditions (at most two).- Returns:
this
-
conditions
@Stability(Stable) public CfnSupportPermit.PermitProperty.Builder conditions(List<? extends Object> conditions) Sets the value ofCfnSupportPermit.PermitProperty.getConditions()- Parameters:
conditions- Optional time-bound conditions (at most two).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSupportPermit.PermitProperty>- Returns:
- a new instance of
CfnSupportPermit.PermitProperty - Throws:
NullPointerException- if any required attribute was not provided
-