Class CreatedByBuilder
Example to create an instance using the builder pattern
CreatedBy createdBy = CreatedBy.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanonymousId(String anonymousId) Indicates the anonymous session during which the resource was created.associate(CustomerReference associate) Indicates the Customer who created the resource in the context of a Business Unit.Indicates the Customer who created the resource in the context of a Business Unit.attributedTo(Attribution attributedTo) Indicates if the resource was created indirectly.Indicates if the resource was created indirectly.build()builds CreatedBy with checking for non-null required valuesbuilds CreatedBy without checking for non-null required valuesidof the API Client which created the resource.customer(CustomerReference customer) Indicates the Customer who created the resource using a token from the password flow.Indicates the Customer who created the resource using a token from the password flow.externalUserId(String externalUserId) External user ID provided by theX-External-User-IDHTTP Header orexternal_user_id:{externalUserId}scope.Indicates the anonymous session during which the resource was created.Indicates the Customer who created the resource in the context of a Business Unit.Indicates if the resource was created indirectly.idof the API Client which created the resource.Indicates the Customer who created the resource using a token from the password flow.External user ID provided by theX-External-User-IDHTTP Header orexternal_user_id:{externalUserId}scope.static CreatedByBuilderof()factory method for an instance of CreatedByBuilderstatic CreatedByBuildercreate builder for CreatedBy instanceIndicates the Customer who created the resource in the context of a Business Unit.Indicates if the resource was created indirectly.Indicates the Customer who created the resource using a token from the password flow.
-
Constructor Details
-
CreatedByBuilder
public CreatedByBuilder()
-
-
Method Details
-
clientId
idof the API Client which created the resource.- Parameters:
clientId- value to be set- Returns:
- Builder
-
externalUserId
External user ID provided by the
X-External-User-IDHTTP Header orexternal_user_id:{externalUserId}scope.- Parameters:
externalUserId- value to be set- Returns:
- Builder
-
customer
public CreatedByBuilder customer(Function<CustomerReferenceBuilder, CustomerReferenceBuilder> builder) Indicates the Customer who created the resource using a token from the password flow.
- Parameters:
builder- function to build the customer value- Returns:
- Builder
-
withCustomer
Indicates the Customer who created the resource using a token from the password flow.
- Parameters:
builder- function to build the customer value- Returns:
- Builder
-
customer
Indicates the Customer who created the resource using a token from the password flow.
- Parameters:
customer- value to be set- Returns:
- Builder
-
anonymousId
Indicates the anonymous session during which the resource was created.
- Parameters:
anonymousId- value to be set- Returns:
- Builder
-
associate
public CreatedByBuilder associate(Function<CustomerReferenceBuilder, CustomerReferenceBuilder> builder) Indicates the Customer who created the resource in the context of a Business Unit. Only available for B2B-enabled Project when an Associate acts on behalf of a company using the associate endpoints.
- Parameters:
builder- function to build the associate value- Returns:
- Builder
-
withAssociate
Indicates the Customer who created the resource in the context of a Business Unit. Only available for B2B-enabled Project when an Associate acts on behalf of a company using the associate endpoints.
- Parameters:
builder- function to build the associate value- Returns:
- Builder
-
associate
Indicates the Customer who created the resource in the context of a Business Unit. Only available for B2B-enabled Project when an Associate acts on behalf of a company using the associate endpoints.
- Parameters:
associate- value to be set- Returns:
- Builder
-
attributedTo
Indicates if the resource was created indirectly.
- Parameters:
builder- function to build the attributedTo value- Returns:
- Builder
-
withAttributedTo
Indicates if the resource was created indirectly.
- Parameters:
builder- function to build the attributedTo value- Returns:
- Builder
-
attributedTo
Indicates if the resource was created indirectly.
- Parameters:
attributedTo- value to be set- Returns:
- Builder
-
getClientId
idof the API Client which created the resource.- Returns:
- clientId
-
getExternalUserId
External user ID provided by the
X-External-User-IDHTTP Header orexternal_user_id:{externalUserId}scope.- Returns:
- externalUserId
-
getCustomer
Indicates the Customer who created the resource using a token from the password flow.
- Returns:
- customer
-
getAnonymousId
Indicates the anonymous session during which the resource was created.
- Returns:
- anonymousId
-
getAssociate
Indicates the Customer who created the resource in the context of a Business Unit. Only available for B2B-enabled Project when an Associate acts on behalf of a company using the associate endpoints.
- Returns:
- associate
-
getAttributedTo
Indicates if the resource was created indirectly.
- Returns:
- attributedTo
-
build
builds CreatedBy with checking for non-null required values -
buildUnchecked
builds CreatedBy without checking for non-null required values- Returns:
- CreatedBy
-
of
factory method for an instance of CreatedByBuilder- Returns:
- builder
-
of
create builder for CreatedBy instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-