Class CfnContainerAssociationProps.Builder
java.lang.Object
software.amazon.awscdk.services.networkfirewall.CfnContainerAssociationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerAssociationProps>
- Enclosing interface:
CfnContainerAssociationProps
@Stability(Stable)
public static final class CfnContainerAssociationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainerAssociationProps>
A builder for
CfnContainerAssociationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containerAssociationName(String containerAssociationName) Sets the value ofCfnContainerAssociationProps.getContainerAssociationName()containerMonitoringConfigurations(List<? extends Object> containerMonitoringConfigurations) Sets the value ofCfnContainerAssociationProps.getContainerMonitoringConfigurations()containerMonitoringConfigurations(IResolvable containerMonitoringConfigurations) Sets the value ofCfnContainerAssociationProps.getContainerMonitoringConfigurations()description(String description) Sets the value ofCfnContainerAssociationProps.getDescription()Sets the value ofCfnContainerAssociationProps.getTags()Sets the value ofCfnContainerAssociationProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerAssociationName
@Stability(Stable) public CfnContainerAssociationProps.Builder containerAssociationName(String containerAssociationName) Sets the value ofCfnContainerAssociationProps.getContainerAssociationName()- Parameters:
containerAssociationName- The descriptive name of the container association. This parameter is required. You can't change the name of a container association after you create it.- Returns:
this
-
containerMonitoringConfigurations
@Stability(Stable) public CfnContainerAssociationProps.Builder containerMonitoringConfigurations(IResolvable containerMonitoringConfigurations) Sets the value ofCfnContainerAssociationProps.getContainerMonitoringConfigurations()- Parameters:
containerMonitoringConfigurations- The monitoring configurations for the container association. This parameter is required. Each configuration specifies an Amazon ECS or Amazon EKS cluster to monitor and optional attribute filters to narrow which containers are tracked.- Returns:
this
-
containerMonitoringConfigurations
@Stability(Stable) public CfnContainerAssociationProps.Builder containerMonitoringConfigurations(List<? extends Object> containerMonitoringConfigurations) Sets the value ofCfnContainerAssociationProps.getContainerMonitoringConfigurations()- Parameters:
containerMonitoringConfigurations- The monitoring configurations for the container association. This parameter is required. Each configuration specifies an Amazon ECS or Amazon EKS cluster to monitor and optional attribute filters to narrow which containers are tracked.- Returns:
this
-
type
Sets the value ofCfnContainerAssociationProps.getType()- Parameters:
type- The type of containers to monitor. This parameter is required. You can't change the container type after creation.- Returns:
this
-
description
Sets the value ofCfnContainerAssociationProps.getDescription()- Parameters:
description- A description of the container association.- Returns:
this
-
tags
Sets the value ofCfnContainerAssociationProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnContainerAssociationProps>- Returns:
- a new instance of
CfnContainerAssociationProps - Throws:
NullPointerException- if any required attribute was not provided
-