public static class SenlinReceiverCreate.SenlinReceiverCreateConcreteBuilder extends Object implements ReceiverCreateBuilder
build()
to receive the
ReceiverCreate
object.Constructor and Description |
---|
SenlinReceiverCreateConcreteBuilder()
Constructor to create a
SenlinReceiverCreate.SenlinReceiverCreateConcreteBuilder object
with a new, empty SenlinReceiverCreate object. |
SenlinReceiverCreateConcreteBuilder(SenlinReceiverCreate model)
Constructor for manipulation of an existing
SenlinReceiverCreate
object. |
Modifier and Type | Method and Description |
---|---|
ReceiverCreateBuilder |
action(String action)
Add the action to initiate when the receiver is triggered.
|
ReceiverCreate |
build()
Creates and return the Model Entity M
|
ReceiverCreateBuilder |
clusterID(String clusterID)
Add the name, ID, or short ID of the object targeted by the receiver
|
ReceiverCreateBuilder |
from(ReceiverCreate in)
Creates a Builder using the param M as the default values
|
ReceiverCreateBuilder |
name(String name)
Add the name for the receiver
|
ReceiverCreateBuilder |
params(Map<String,String> params)
Add the map of key and value pairs to use for action creation.
|
ReceiverCreateBuilder |
type(String type)
Add the type of the receiver where the only valid value is webhook currently
|
public SenlinReceiverCreateConcreteBuilder()
SenlinReceiverCreate.SenlinReceiverCreateConcreteBuilder
object
with a new, empty SenlinReceiverCreate
object.public SenlinReceiverCreateConcreteBuilder(SenlinReceiverCreate model)
SenlinReceiverCreate
object.model
- the SenlinReceiverCreate
object which is to be
modified.public ReceiverCreate build()
Buildable.Builder
build
in interface Buildable.Builder<ReceiverCreateBuilder,ReceiverCreate>
public ReceiverCreateBuilder from(ReceiverCreate in)
Buildable.Builder
from
in interface Buildable.Builder<ReceiverCreateBuilder,ReceiverCreate>
public ReceiverCreateBuilder action(String action)
ReceiverCreateBuilder
action
in interface ReceiverCreateBuilder
action
- The action to initiate.public ReceiverCreateBuilder clusterID(String clusterID)
ReceiverCreateBuilder
clusterID
in interface ReceiverCreateBuilder
clusterID
- The Name, ID, or short ID of the object targeted by the receiverpublic ReceiverCreateBuilder name(String name)
ReceiverCreateBuilder
name
in interface ReceiverCreateBuilder
name
- The name for the receiverpublic ReceiverCreateBuilder type(String type)
ReceiverCreateBuilder
type
in interface ReceiverCreateBuilder
type
- The type of the receiverpublic ReceiverCreateBuilder params(Map<String,String> params)
ReceiverCreateBuilder
params
in interface ReceiverCreateBuilder
params
- A map of key and value pairs to use for action creation.Copyright © 2017. All rights reserved.