@Generated(value="io.sphere.sdk.annotations.processors.generators.ResourceDraftValueGenerator", comments="Generated from: io.sphere.sdk.apiclient.ApiClientDraft") public final class ApiClientDraftDsl extends Base implements ApiClientDraft
ApiClientDraft
.Modifier and Type | Method and Description |
---|---|
Long |
getAccessTokenValiditySeconds() |
Integer |
getDeleteDaysAfterCreation() |
String |
getName() |
Long |
getRefreshTokenValiditySeconds() |
String |
getScope() |
ApiClientDraftBuilder |
newBuilder()
Creates a new builder with the values of this object.
|
static ApiClientDraftDsl |
of(ApiClientDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static ApiClientDraftDsl |
of(String name,
String scope)
Creates a new object initialized with the given values.
|
ApiClientDraftDsl |
withAccessTokenValiditySeconds(Long accessTokenValiditySeconds) |
ApiClientDraftDsl |
withDeleteDaysAfterCreation(Integer deleteDaysAfterCreation) |
ApiClientDraftDsl |
withName(String name) |
ApiClientDraftDsl |
withRefreshTokenValiditySeconds(Long refreshTokenValiditySeconds) |
ApiClientDraftDsl |
withScope(String scope) |
@Nullable public Long getAccessTokenValiditySeconds()
getAccessTokenValiditySeconds
in interface ApiClientDraft
@Nullable public Integer getDeleteDaysAfterCreation()
getDeleteDaysAfterCreation
in interface ApiClientDraft
public String getName()
getName
in interface ApiClientDraft
@Nullable public Long getRefreshTokenValiditySeconds()
getRefreshTokenValiditySeconds
in interface ApiClientDraft
public String getScope()
getScope
in interface ApiClientDraft
public ApiClientDraftBuilder newBuilder()
public ApiClientDraftDsl withAccessTokenValiditySeconds(@Nullable Long accessTokenValiditySeconds)
public ApiClientDraftDsl withDeleteDaysAfterCreation(@Nullable Integer deleteDaysAfterCreation)
public ApiClientDraftDsl withName(String name)
public ApiClientDraftDsl withRefreshTokenValiditySeconds(@Nullable Long refreshTokenValiditySeconds)
public ApiClientDraftDsl withScope(String scope)
public static ApiClientDraftDsl of(String name, String scope)
name
- initial value for the ApiClientDraft.getName()
propertyscope
- initial value for the ApiClientDraft.getScope()
propertypublic static ApiClientDraftDsl of(ApiClientDraft template)
template
- the template