Class CfnRegistryRecordProps.Builder
java.lang.Object
software.amazon.awscdk.services.agentregistry.CfnRegistryRecordProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRegistryRecordProps>
- Enclosing interface:
CfnRegistryRecordProps
@Stability(Stable)
public static final class CfnRegistryRecordProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRegistryRecordProps>
A builder for
CfnRegistryRecordProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnRegistryRecordProps.getDescription()descriptors(IResolvable descriptors) Sets the value ofCfnRegistryRecordProps.getDescriptors()descriptors(CfnRegistryRecord.DescriptorsProperty descriptors) Sets the value ofCfnRegistryRecordProps.getDescriptors()displayName(String displayName) Sets the value ofCfnRegistryRecordProps.getDisplayName()Sets the value ofCfnRegistryRecordProps.getName()recordType(String recordType) Sets the value ofCfnRegistryRecordProps.getRecordType()recordVersion(String recordVersion) Sets the value ofCfnRegistryRecordProps.getRecordVersion()registryId(String registryId) Sets the value ofCfnRegistryRecordProps.getRegistryId()Sets the value ofCfnRegistryRecordProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
descriptors
Sets the value ofCfnRegistryRecordProps.getDescriptors()- Parameters:
descriptors- The typed set of descriptors for a registry record. This parameter is required. Exactly one descriptor field is populated based on the record type.- Returns:
this
-
descriptors
@Stability(Stable) public CfnRegistryRecordProps.Builder descriptors(CfnRegistryRecord.DescriptorsProperty descriptors) Sets the value ofCfnRegistryRecordProps.getDescriptors()- Parameters:
descriptors- The typed set of descriptors for a registry record. This parameter is required. Exactly one descriptor field is populated based on the record type.- Returns:
this
-
name
Sets the value ofCfnRegistryRecordProps.getName()- Parameters:
name- The name of the registry record. This parameter is required.- Returns:
this
-
recordType
Sets the value ofCfnRegistryRecordProps.getRecordType()- Parameters:
recordType- The type of the registry record. This parameter is required.- Returns:
this
-
registryId
Sets the value ofCfnRegistryRecordProps.getRegistryId()- Parameters:
registryId- The identifier of the registry containing the record. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnRegistryRecordProps.getDescription()- Parameters:
description- The description of the registry record.- Returns:
this
-
displayName
Sets the value ofCfnRegistryRecordProps.getDisplayName()- Parameters:
displayName- The human-readable display name of the registry record.- Returns:
this
-
recordVersion
Sets the value ofCfnRegistryRecordProps.getRecordVersion()- Parameters:
recordVersion- The version of the registry record.- Returns:
this
-
tags
Sets the value ofCfnRegistryRecordProps.getTags()- Parameters:
tags- Tags to assign to the registry record.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRegistryRecordProps>- Returns:
- a new instance of
CfnRegistryRecordProps - Throws:
NullPointerException- if any required attribute was not provided
-