Class ClientLoggingBuilder
- All Implemented Interfaces:
Builder<ClientLogging>
Example to create an instance using the builder pattern
ClientLogging clientLogging = ClientLogging.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionanonymousId
(String anonymousId) Indicates that the resource was modified during an anonymous session with the logged ID.associate
(CustomerReference associate) Indicates the Customer who created or modified the resource in the context of a Business Unit.Indicates the Customer who created or modified the resource in the context of a Business Unit.build()
builds ClientLogging with checking for non-null required valuesbuilds ClientLogging without checking for non-null required valuesid
of the API Client which created the resource.customer
(CustomerReference customer) Indicates the Customer who modified the resource using a token from the password flow.Indicates the Customer who modified the resource using a token from the password flow.externalUserId
(String externalUserId) External user ID provided byX-External-User-ID
HTTP Header.Indicates that the resource was modified during an anonymous session with the logged ID.Indicates the Customer who created or modified the resource in the context of a Business Unit.id
of the API Client which created the resource.Indicates the Customer who modified the resource using a token from the password flow.External user ID provided byX-External-User-ID
HTTP Header.static ClientLoggingBuilder
of()
factory method for an instance of ClientLoggingBuilderstatic ClientLoggingBuilder
of
(ClientLogging template) create builder for ClientLogging instanceIndicates the Customer who created or modified the resource in the context of a Business Unit.Indicates the Customer who modified the resource using a token from the password flow.
-
Constructor Details
-
ClientLoggingBuilder
public ClientLoggingBuilder()
-
-
Method Details
-
clientId
id
of the API Client which created the resource.- Parameters:
clientId
- value to be set- Returns:
- Builder
-
externalUserId
External user ID provided by
X-External-User-ID
HTTP Header.- Parameters:
externalUserId
- value to be set- Returns:
- Builder
-
customer
public ClientLoggingBuilder customer(Function<CustomerReferenceBuilder, CustomerReferenceBuilder> builder) Indicates the Customer who modified the resource using a token from the password flow.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
withCustomer
public ClientLoggingBuilder withCustomer(Function<CustomerReferenceBuilder, CustomerReference> builder) Indicates the Customer who modified the resource using a token from the password flow.
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
customer
Indicates the Customer who modified the resource using a token from the password flow.
- Parameters:
customer
- value to be set- Returns:
- Builder
-
anonymousId
Indicates that the resource was modified during an anonymous session with the logged ID.
- Parameters:
anonymousId
- value to be set- Returns:
- Builder
-
associate
public ClientLoggingBuilder associate(Function<CustomerReferenceBuilder, CustomerReferenceBuilder> builder) Indicates the Customer who created or modified the resource in the context of a Business Unit. Only present when an Associate acts on behalf of a company using the associate endpoints.
- Parameters:
builder
- function to build the associate value- Returns:
- Builder
-
withAssociate
public ClientLoggingBuilder withAssociate(Function<CustomerReferenceBuilder, CustomerReference> builder) Indicates the Customer who created or modified the resource in the context of a Business Unit. Only present 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 or modified the resource in the context of a Business Unit. Only present when an Associate acts on behalf of a company using the associate endpoints.
- Parameters:
associate
- value to be set- Returns:
- Builder
-
getClientId
id
of the API Client which created the resource.- Returns:
- clientId
-
getExternalUserId
External user ID provided by
X-External-User-ID
HTTP Header.- Returns:
- externalUserId
-
getCustomer
Indicates the Customer who modified the resource using a token from the password flow.
- Returns:
- customer
-
getAnonymousId
Indicates that the resource was modified during an anonymous session with the logged ID.
- Returns:
- anonymousId
-
getAssociate
Indicates the Customer who created or modified the resource in the context of a Business Unit. Only present when an Associate acts on behalf of a company using the associate endpoints.
- Returns:
- associate
-
build
builds ClientLogging with checking for non-null required values- Specified by:
build
in interfaceBuilder<ClientLogging>
- Returns:
- ClientLogging
-
buildUnchecked
builds ClientLogging without checking for non-null required values- Returns:
- ClientLogging
-
of
factory method for an instance of ClientLoggingBuilder- Returns:
- builder
-
of
create builder for ClientLogging instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-