Class Brand.Builder
- java.lang.Object
-
- com.courier.api.resources.brands.types.Brand.Builder
-
- All Implemented Interfaces:
Brand._FinalStage,Brand.CreatedStage,Brand.NameStage,Brand.PublishedStage,Brand.SettingsStage,Brand.UpdatedStage,Brand.VersionStage
- Enclosing class:
- Brand
public static final class Brand.Builder extends java.lang.Object implements Brand.CreatedStage, Brand.NameStage, Brand.PublishedStage, Brand.SettingsStage, Brand.UpdatedStage, Brand.VersionStage, Brand._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Brandbuild()Brand.NameStagecreated(int created)The date/time of when the brand was created.Brand.Builderfrom(Brand other)Brand._FinalStageid(java.lang.String id)Brand IdentifierBrand._FinalStageid(java.util.Optional<java.lang.String> id)Brand.PublishedStagename(java.lang.String name)Brand nameBrand.SettingsStagepublished(int published)The date/time of when the brand was published.Brand.UpdatedStagesettings(BrandSettings settings)Brand._FinalStagesnippets(BrandSnippets snippets)Brand._FinalStagesnippets(java.util.Optional<BrandSnippets> snippets)Brand.VersionStageupdated(int updated)The date/time of when the brand was updated.Brand._FinalStageversion(java.lang.String version)The version identifier for the brand
-
-
-
Method Detail
-
from
public Brand.Builder from(Brand other)
- Specified by:
fromin interfaceBrand.CreatedStage
-
created
public Brand.NameStage created(int created)
The date/time of when the brand was created. Represented in milliseconds since Unix epoch.
- Specified by:
createdin interfaceBrand.CreatedStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public Brand.PublishedStage name(java.lang.String name)
Brand name
- Specified by:
namein interfaceBrand.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
published
public Brand.SettingsStage published(int published)
The date/time of when the brand was published. Represented in milliseconds since Unix epoch.
- Specified by:
publishedin interfaceBrand.PublishedStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
settings
public Brand.UpdatedStage settings(BrandSettings settings)
- Specified by:
settingsin interfaceBrand.SettingsStage
-
updated
public Brand.VersionStage updated(int updated)
The date/time of when the brand was updated. Represented in milliseconds since Unix epoch.
- Specified by:
updatedin interfaceBrand.UpdatedStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
version
public Brand._FinalStage version(java.lang.String version)
The version identifier for the brand
- Specified by:
versionin interfaceBrand.VersionStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
snippets
public Brand._FinalStage snippets(BrandSnippets snippets)
- Specified by:
snippetsin interfaceBrand._FinalStage
-
snippets
public Brand._FinalStage snippets(java.util.Optional<BrandSnippets> snippets)
- Specified by:
snippetsin interfaceBrand._FinalStage
-
id
public Brand._FinalStage id(java.lang.String id)
Brand Identifier
- Specified by:
idin interfaceBrand._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
public Brand._FinalStage id(java.util.Optional<java.lang.String> id)
- Specified by:
idin interfaceBrand._FinalStage
-
build
public Brand build()
- Specified by:
buildin interfaceBrand._FinalStage
-
-