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 AttributionBuilderbuilder()builder factory method for Attributionstatic AttributionBuilderbuilder(Attribution template) create builder for Attribution instancecopyDeep()static AttributiondeepCopy(Attribution template) factory method to create a deep copy of Attributionidof the API Client that created or modified the resource.@NotNull AttributionSourceMethod used to initiate the creation or modification of the resource.static Attributionof()factory methodstatic Attributionof(Attribution template) factory method to create a shallow copy AttributionvoidsetClientId(String clientId) idof the API Client that created or modified the resource.voidsetSource(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> TwithAttribution(Function<Attribution, T> helper) accessor map function
-
Method Details
-
getClientId
String getClientId()idof 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
idof 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
-
copyDeep
Attribution copyDeep() -
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
-