Class ChannelSetCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<ChannelSetCustomTypeAction>
Example to create an instance using the builder pattern
ChannelSetCustomTypeAction channelSetCustomTypeAction = ChannelSetCustomTypeAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ChannelSetCustomTypeAction with checking for non-null required valuesbuilds ChannelSetCustomTypeAction without checking for non-null required valuesfields(FieldContainer fields) Object containing the Custom Fields fields for the Channel.Object containing the Custom Fields fields for the Channel.Object containing the Custom Fields fields for the Channel.getType()Defines the Type that extends the Channel with Custom Fields.of()factory method for an instance of ChannelSetCustomTypeActionBuilderof(ChannelSetCustomTypeAction template) create builder for ChannelSetCustomTypeAction instancetype(TypeResourceIdentifier type) Defines the Type that extends the Channel with Custom Fields.Defines the Type that extends the Channel with Custom Fields.Object containing the Custom Fields fields for the Channel.Defines the Type that extends the Channel with Custom Fields.
-
Constructor Details
-
ChannelSetCustomTypeActionBuilder
public ChannelSetCustomTypeActionBuilder()
-
-
Method Details
-
type
public ChannelSetCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the Channel with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Channel.
- Parameters:
builder- function to build the type value- Returns:
- Builder
-
withType
public ChannelSetCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the Channel with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Channel.
- Parameters:
builder- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the Channel with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Channel.
- Parameters:
type- value to be set- Returns:
- Builder
-
fields
public ChannelSetCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Object containing the Custom Fields fields for the Channel.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Parameters:
builder- function to build the fields value- Returns:
- Builder
-
withFields
public ChannelSetCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Object containing the Custom Fields fields for the Channel.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Parameters:
builder- function to build the fields value- Returns:
- Builder
-
fields
Object containing the Custom Fields fields for the Channel.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Parameters:
fields- value to be set- Returns:
- Builder
-
getType
Defines the Type that extends the Channel with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Channel.
- Returns:
- type
-
getFields
Object containing the Custom Fields fields for the Channel.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Returns:
- fields
-
build
builds ChannelSetCustomTypeAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ChannelSetCustomTypeAction>- Returns:
- ChannelSetCustomTypeAction
-
buildUnchecked
builds ChannelSetCustomTypeAction without checking for non-null required values- Returns:
- ChannelSetCustomTypeAction
-
of
factory method for an instance of ChannelSetCustomTypeActionBuilder- Returns:
- builder
-
of
create builder for ChannelSetCustomTypeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-