Class CfnMalwareProtectionPlan.CFNStatusReasonsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.CFNStatusReasonsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMalwareProtectionPlan.CFNStatusReasonsProperty>
- Enclosing interface:
CfnMalwareProtectionPlan.CFNStatusReasonsProperty
@Stability(Stable)
public static final class CfnMalwareProtectionPlan.CFNStatusReasonsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMalwareProtectionPlan.CFNStatusReasonsProperty>
A builder for
CfnMalwareProtectionPlan.CFNStatusReasonsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnMalwareProtectionPlan.CFNStatusReasonsProperty.getCode()Sets the value ofCfnMalwareProtectionPlan.CFNStatusReasonsProperty.getMessage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
code
@Stability(Stable) public CfnMalwareProtectionPlan.CFNStatusReasonsProperty.Builder code(String code) Sets the value ofCfnMalwareProtectionPlan.CFNStatusReasonsProperty.getCode()- Parameters:
code- The status code of the Malware Protection plan. For more information, see Malware Protection plan resource status in the GuardDuty User Guide .- Returns:
this
-
message
@Stability(Stable) public CfnMalwareProtectionPlan.CFNStatusReasonsProperty.Builder message(String message) Sets the value ofCfnMalwareProtectionPlan.CFNStatusReasonsProperty.getMessage()- Parameters:
message- Issue message that specifies the reason. For information about potential troubleshooting steps, see Troubleshooting Malware Protection for S3 status issues in the Amazon GuardDuty User Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMalwareProtectionPlan.CFNStatusReasonsProperty>- Returns:
- a new instance of
CfnMalwareProtectionPlan.CFNStatusReasonsProperty - Throws:
NullPointerException- if any required attribute was not provided
-