Class NewsfeedFields.Builder
- java.lang.Object
-
- com.cheetahdigital.newsfeed.core.api.NewsfeedFields.Builder
-
- Enclosing class:
- NewsfeedFields
public static class NewsfeedFields.Builder extends java.lang.Object
Builder class forNewsfeedFields
-
-
Constructor Summary
Constructors Constructor Description Builder()
Default constructorBuilder(NewsfeedFields queryParams)
Create a builder class from an existingNewsfeedFields
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NewsfeedFields
build()
protected NewsfeedFields
createQueryParams()
Instantiates the implementation classNewsfeedFields.Builder
setBody(java.lang.String body)
Set the body of the created postNewsfeedFields.Builder
setFlag(java.lang.String flag)
Set the selected flag from list ofFlag
NewsfeedFields.Builder
setMessage(java.lang.String message)
Set the content of the comment
-
-
-
Constructor Detail
-
Builder
public Builder(NewsfeedFields queryParams)
Create a builder class from an existingNewsfeedFields
- Parameters:
queryParams
-NewsfeedFields
to be reused
-
Builder
public Builder()
Default constructor
-
-
Method Detail
-
setMessage
public NewsfeedFields.Builder setMessage(@Nullable java.lang.String message)
Set the content of the comment- Parameters:
message
- content of the comment- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setFlag
public NewsfeedFields.Builder setFlag(@Nullable java.lang.String flag)
Set the selected flag from list ofFlag
- Parameters:
flag
- selected flag from list ofFlag
- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setBody
public NewsfeedFields.Builder setBody(@Nullable java.lang.String body)
Set the body of the created post- Parameters:
body
- body of the created post- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
createQueryParams
protected NewsfeedFields createQueryParams()
Instantiates the implementation class- Returns:
- implementation class of
BaseParams.BaseBuilder
-
build
public NewsfeedFields build()
- Returns:
- the built parameter class
-
-