Interface Attribution
public interface Attribution
Indicates the source and method that indirectly created or modified the resource. This is present on resources created or updated after 1 April 2024.
Example to create an instance using the builder pattern
Attribution attribution = Attribution.builder()
.source(AttributionSource.IMPORT)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic AttributionBuilder
builder()
builder factory method for Attributionstatic AttributionBuilder
builder
(Attribution template) create builder for Attribution instancestatic Attribution
deepCopy
(Attribution template) factory method to create a deep copy of Attributionid
of the API Client that created or modified the resource.@NotNull AttributionSource
Method used to initiate the creation or modification of the resource.static Attribution
of()
factory methodstatic Attribution
of
(Attribution template) factory method to create a shallow copy Attributionvoid
setClientId
(String clientId) id
of the API Client that created or modified the resource.void
setSource
(AttributionSource source) Method used to initiate the creation or modification of the resource.static com.fasterxml.jackson.core.type.TypeReference<Attribution>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withAttribution
(Function<Attribution, T> helper) accessor map function
-
Method Details
-
getClientId
String getClientId()id
of the API Client that created or modified the resource.- Returns:
- clientId
-
getSource
Method used to initiate the creation or modification of the resource.
- Returns:
- source
-
setClientId
id
of the API Client that created or modified the resource.- Parameters:
clientId
- value to be set
-
setSource
Method used to initiate the creation or modification of the resource.
- Parameters:
source
- value to be set
-
of
factory method- Returns:
- instance of Attribution
-
of
factory method to create a shallow copy Attribution- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of Attribution- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for Attribution- Returns:
- builder
-
builder
create builder for Attribution instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAttribution
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-