Class ModifiedByBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ModifiedBy>
Example to create an instance using the builder pattern
ModifiedBy modifiedBy = ModifiedBy.builder()
.id("{id}")
.type("{type}")
.isPlatformClient(true)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanonymousId(String anonymousId) Present only if the change was made using a token from an anonymous session.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.Reference to the Customer who made the change.customer(Function<ReferenceBuilder, ReferenceBuilder> builder) Reference to the Customer who made the change.Present only if the change was made using a token from an anonymous session.ID of the API Client that made the change.Reference to the Customer who made the change.getId()ID of the Merchant Center user who made the change.trueif 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) trueif the change was made using the Merchant Center or ImpEx.static ModifiedByBuilderof()factory method for an instance of ModifiedByBuilderstatic ModifiedByBuilderof(ModifiedBy template) create builder for ModifiedBy instanceIndicates who performed the change.withCustomer(Function<ReferenceBuilder, Reference> builder) Reference to the Customer who made the change.
-
Constructor Details
-
ModifiedByBuilder
public ModifiedByBuilder()
-
-
Method Details
-
id
ID of the Merchant Center user who made the change.
Present only if the change was made in the Merchant Center.
- 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".
- Parameters:
type- value to be set- Returns:
- Builder
- If the change was made by a user, the value is
-
customer
Reference to 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
Reference to 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
Reference to 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
-
anonymousId
Present only if the change was made using a token from an anonymous session.
- Parameters:
anonymousId- value to be set- Returns:
- Builder
-
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
-
isPlatformClient
trueif the change was made using the Merchant Center or ImpEx.- Parameters:
isPlatformClient- value to be set- Returns:
- Builder
-
getId
ID of the Merchant Center user who made the change.
Present only if the change was made in the Merchant Center.
- 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".
- Returns:
- type
- If the change was made by a user, the value is
-
getCustomer
Reference to the Customer who made the change.
Present only if the change was made using a token from the password flow.
- Returns:
- customer
-
getAnonymousId
Present only if the change was made using a token from an anonymous session.
- Returns:
- anonymousId
-
getClientId
ID of the API Client that made the change.
Present only if the change was made using an API Client.
- Returns:
- clientId
-
getIsPlatformClient
trueif the change was made using the Merchant Center or ImpEx.- Returns:
- isPlatformClient
-
build
builds ModifiedBy with checking for non-null required values- Specified by:
buildin interfaceio.vrap.rmf.base.client.Builder<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
-