Class CfnBackupSelection.ConditionResourceTypeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.backup.CfnBackupSelection.ConditionResourceTypeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBackupSelection.ConditionResourceTypeProperty>
- Enclosing interface:
CfnBackupSelection.ConditionResourceTypeProperty
@Stability(Stable)
public static final class CfnBackupSelection.ConditionResourceTypeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBackupSelection.ConditionResourceTypeProperty>
A builder for
CfnBackupSelection.ConditionResourceTypeProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.conditionKey
(String conditionKey) Sets the value ofCfnBackupSelection.ConditionResourceTypeProperty.getConditionKey()
conditionType
(String conditionType) Sets the value ofCfnBackupSelection.ConditionResourceTypeProperty.getConditionType()
conditionValue
(String conditionValue) Sets the value ofCfnBackupSelection.ConditionResourceTypeProperty.getConditionValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
conditionKey
@Stability(Stable) public CfnBackupSelection.ConditionResourceTypeProperty.Builder conditionKey(String conditionKey) Sets the value ofCfnBackupSelection.ConditionResourceTypeProperty.getConditionKey()
- Parameters:
conditionKey
- The key in a key-value pair. This parameter is required. For example, in"Department": "accounting"
,"Department"
is the key.- Returns:
this
-
conditionType
@Stability(Stable) public CfnBackupSelection.ConditionResourceTypeProperty.Builder conditionType(String conditionType) Sets the value ofCfnBackupSelection.ConditionResourceTypeProperty.getConditionType()
- Parameters:
conditionType
- An operation, such asSTRINGEQUALS
, that is applied to a key-value pair used to filter resources in a selection. This parameter is required.- Returns:
this
-
conditionValue
@Stability(Stable) public CfnBackupSelection.ConditionResourceTypeProperty.Builder conditionValue(String conditionValue) Sets the value ofCfnBackupSelection.ConditionResourceTypeProperty.getConditionValue()
- Parameters:
conditionValue
- The value in a key-value pair. This parameter is required. For example, in"Department": "accounting"
,"accounting"
is the value.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBackupSelection.ConditionResourceTypeProperty>
- Returns:
- a new instance of
CfnBackupSelection.ConditionResourceTypeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-