Class CfnPatchBaseline.PatchSourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ssm.CfnPatchBaseline.PatchSourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPatchBaseline.PatchSourceProperty>
- Enclosing interface:
CfnPatchBaseline.PatchSourceProperty
@Stability(Stable)
public static final class CfnPatchBaseline.PatchSourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPatchBaseline.PatchSourceProperty>
A builder for
CfnPatchBaseline.PatchSourceProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.configuration
(String configuration) Sets the value ofCfnPatchBaseline.PatchSourceProperty.getConfiguration()
Sets the value ofCfnPatchBaseline.PatchSourceProperty.getName()
Sets the value ofCfnPatchBaseline.PatchSourceProperty.getProducts()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configuration
@Stability(Stable) public CfnPatchBaseline.PatchSourceProperty.Builder configuration(String configuration) Sets the value ofCfnPatchBaseline.PatchSourceProperty.getConfiguration()
- Parameters:
configuration
- The value of the yum repo configuration. For example:.[main]
name=MyCustomRepository
baseurl=https://my-custom-repository
enabled=1
For information about other options available for your yum repository configuration, see dnf.conf(5) .
- Returns:
this
-
name
Sets the value ofCfnPatchBaseline.PatchSourceProperty.getName()
- Parameters:
name
- The name specified to identify the patch source.- Returns:
this
-
products
@Stability(Stable) public CfnPatchBaseline.PatchSourceProperty.Builder products(List<String> products) Sets the value ofCfnPatchBaseline.PatchSourceProperty.getProducts()
- Parameters:
products
- The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product values, see PatchFilter in the AWS Systems Manager API Reference .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPatchBaseline.PatchSourceProperty>
- Returns:
- a new instance of
CfnPatchBaseline.PatchSourceProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-