Class ModifiedByBuilder
- All Implemented Interfaces:
Builder<ModifiedBy>
Example to create an instance using the builder pattern
ModifiedBy modifiedBy = ModifiedBy.builder()
.isPlatformClient(true)
.type("{type}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionanonymousId
(String anonymousId) Present only if the change was made using a token from an anonymous session.The Associate who made the change in the context of a Business Unit.associate
(Function<ReferenceBuilder, ReferenceBuilder> builder) The Associate who made the change in the context of a Business Unit.build()
builds ModifiedBy with checking for non-null required valuesbuilds ModifiedBy without checking for non-null required valuesID of the API Client that made the change.The Customer who made the change.customer
(Function<ReferenceBuilder, ReferenceBuilder> builder) The Customer who made the change.Present only if the change was made using a token from an anonymous session.The Associate who made the change in the context of a Business Unit.ID of the API Client that made the change.The Customer who made the change.getId()
ID of the Merchant Center user who made the change.true
if the change was made using the Merchant Center or ImpEx.getType()
Indicates who performed the change.ID of the Merchant Center user who made the change.isPlatformClient
(Boolean isPlatformClient) true
if the change was made using the Merchant Center or ImpEx.static ModifiedByBuilder
of()
factory method for an instance of ModifiedByBuilderstatic ModifiedByBuilder
of
(ModifiedBy template) create builder for ModifiedBy instanceIndicates who performed the change.withAssociate
(Function<ReferenceBuilder, Reference> builder) The Associate who made the change in the context of a Business Unit.withCustomer
(Function<ReferenceBuilder, Reference> builder) The Customer who made the change.
-
Constructor Details
-
ModifiedByBuilder
public ModifiedByBuilder()
-
-
Method Details
-
isPlatformClient
true
if the change was made using the Merchant Center or ImpEx.- Parameters:
isPlatformClient
- value to be set- Returns:
- Builder
-
id
ID of the Merchant Center user who made the change.
Present only if
isPlatformClient
istrue
.- Parameters:
id
- value to be set- Returns:
- Builder
-
type
Indicates who performed the change.
- If the change was made by a user, the value is
"user"
. - If the change was made by an API Client with or without an external user ID, the value is
"external-user"
. - If the change was made by an Associate, the value is
"associate"
.
- Parameters:
type
- value to be set- Returns:
- Builder
- If the change was made by a user, the value is
-
clientId
ID of the API Client that made the change.
Present only if the change was made using an API Client.
- Parameters:
clientId
- value to be set- Returns:
- Builder
-
anonymousId
Present only if the change was made using a token from an anonymous session.
- Parameters:
anonymousId
- value to be set- Returns:
- Builder
-
customer
The Customer who made the change.
Present only if the change was made using a token from the password flow.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
withCustomer
The Customer who made the change.
Present only if the change was made using a token from the password flow.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
customer
The Customer who made the change.
Present only if the change was made using a token from the password flow.
- Parameters:
customer
- value to be set- Returns:
- Builder
-
associate
The Associate who made the change in the context of a Business Unit. Present only if the Associate acts on behalf of a company using the associate endpoints.
- Parameters:
builder
- function to build the associate value- Returns:
- Builder
-
withAssociate
The Associate who made the change in the context of a Business Unit. Present only if the Associate acts on behalf of a company using the associate endpoints.
- Parameters:
builder
- function to build the associate value- Returns:
- Builder
-
associate
The Associate who made the change in the context of a Business Unit. Present only if the Associate acts on behalf of a company using the associate endpoints.
- Parameters:
associate
- value to be set- Returns:
- Builder
-
getIsPlatformClient
true
if the change was made using the Merchant Center or ImpEx.- Returns:
- isPlatformClient
-
getId
ID of the Merchant Center user who made the change.
Present only if
isPlatformClient
istrue
.- Returns:
- id
-
getType
Indicates who performed the change.
- If the change was made by a user, the value is
"user"
. - If the change was made by an API Client with or without an external user ID, the value is
"external-user"
. - If the change was made by an Associate, the value is
"associate"
.
- Returns:
- type
- If the change was made by a user, the value is
-
getClientId
ID of the API Client that made the change.
Present only if the change was made using an API Client.
- Returns:
- clientId
-
getAnonymousId
Present only if the change was made using a token from an anonymous session.
- Returns:
- anonymousId
-
getCustomer
The Customer who made the change.
Present only if the change was made using a token from the password flow.
- Returns:
- customer
-
getAssociate
The Associate who made the change in the context of a Business Unit. Present only if the Associate acts on behalf of a company using the associate endpoints.
- Returns:
- associate
-
build
builds ModifiedBy with checking for non-null required values- Specified by:
build
in interfaceBuilder<ModifiedBy>
- Returns:
- ModifiedBy
-
buildUnchecked
builds ModifiedBy without checking for non-null required values- Returns:
- ModifiedBy
-
of
factory method for an instance of ModifiedByBuilder- Returns:
- builder
-
of
create builder for ModifiedBy instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-