static Reference<TaxCategory> referenceOfId(final String id) { return Reference.of(referenceTypeId(), id); } }
/** * Creates a reference for one item of this class by a known ID. * <p> * <p>An example for categories but this applies for other resources, too:</p> * {@include.example io.sphere.sdk.categories.CategoryTest#referenceOfId()} * <p> * <p>If you already have a resource object, then use {@link #toReference()} instead:</p> * <p> * {@include.example io.sphere.sdk.categories.CategoryTest#toReference()} * * @param id the ID of the resource which should be referenced. * @return reference */ static Reference<TaxCategory> referenceOfId(final String id) { return Reference.of(referenceTypeId(), id); } }
/** * Creates a reference for one item of this class by a known ID. * <p> * <p>An example for categories but this applies for other resources, too:</p> * {@include.example io.sphere.sdk.categories.CategoryTest#referenceOfId()} * <p> * <p>If you already have a resource object, then use {@link #toReference()} instead:</p> * <p> * {@include.example io.sphere.sdk.categories.CategoryTest#toReference()} * * @param id the ID of the resource which should be referenced. * @return reference */ static Reference<TaxCategory> referenceOfId(final String id) { return Reference.of(referenceTypeId(), id); } }
@Override default Reference<TaxCategory> toReference() { return Reference.of(referenceTypeId(), getId(), this); }
@Override default Reference<TaxCategory> toReference() { return Reference.of(referenceTypeId(), getId(), this); }
@Override default Reference<TaxCategory> toReference() { return Reference.of(referenceTypeId(), getId(), this); }