Package com.okta.sdk.resource.api
Class BrandsApi
java.lang.Object
com.okta.sdk.resource.api.BrandsApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-09-23T16:19:57.008753975Z[Etc/UTC]",
comments="Generator version: 7.8.0")
public class BrandsApi
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateBrand
(CreateBrandRequest createBrandRequest) Create a Brand Creates a new brand in your orgcreateBrand
(CreateBrandRequest createBrandRequest, Map<String, String> additionalHeaders) Create a Brand Creates a new brand in your orgvoid
deleteBrand
(String brandId) Delete a brand Deletes a brand by `brandId`void
deleteBrand
(String brandId, Map<String, String> additionalHeaders) Delete a brand Deletes a brand by `brandId`Retrieve a Brand Retrieves a brand by `brandId`Retrieve a Brand Retrieves a brand by `brandId`protected static com.fasterxml.jackson.databind.ObjectMapper
listBrandDomains
(String brandId) List all Domains associated with a Brand Lists all domains associated with a brand by `brandId`listBrandDomains
(String brandId, Map<String, String> additionalHeaders) List all Domains associated with a Brand Lists all domains associated with a brand by `brandId`List all Brands Lists all the brands in your orglistBrands
(List<String> expand, String after, Integer limit, String q, Map<String, String> additionalHeaders) List all Brands Lists all the brands in your orgreplaceBrand
(String brandId, BrandRequest brand) Replace a Brand Replaces a brand by `brandId` Passing an invalid `brandId` returns a `404 Not Found` status code with the error code `E0000007`.replaceBrand
(String brandId, BrandRequest brand, Map<String, String> additionalHeaders) Replace a Brand Replaces a brand by `brandId` Passing an invalid `brandId` returns a `404 Not Found` status code with the error code `E0000007`.void
setApiClient
(ApiClient apiClient)
-
Constructor Details
-
BrandsApi
public BrandsApi() -
BrandsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createBrand
Create a Brand Creates a new brand in your org- Parameters:
createBrandRequest
- (optional)- Returns:
- Brand
- Throws:
ApiException
- if fails to make API call
-
createBrand
public Brand createBrand(CreateBrandRequest createBrandRequest, Map<String, String> additionalHeaders) throws ApiExceptionCreate a Brand Creates a new brand in your org- Parameters:
createBrandRequest
- (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- Brand
- Throws:
ApiException
- if fails to make API call
-
deleteBrand
Delete a brand Deletes a brand by `brandId`- Parameters:
brandId
- The ID of the brand (required)- Throws:
ApiException
- if fails to make API call
-
deleteBrand
Delete a brand Deletes a brand by `brandId`- Parameters:
brandId
- The ID of the brand (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
getBrand
Retrieve a Brand Retrieves a brand by `brandId`- Parameters:
brandId
- The ID of the brand (required)expand
- Specifies additional metadata to be included in the response (optional- Returns:
- BrandWithEmbedded
- Throws:
ApiException
- if fails to make API call
-
getBrand
public BrandWithEmbedded getBrand(String brandId, List<String> expand, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a Brand Retrieves a brand by `brandId`- Parameters:
brandId
- The ID of the brand (required)expand
- Specifies additional metadata to be included in the response (optionaladditionalHeaders
- additionalHeaders for this call- Returns:
- BrandWithEmbedded
- Throws:
ApiException
- if fails to make API call
-
listBrandDomains
List all Domains associated with a Brand Lists all domains associated with a brand by `brandId`- Parameters:
brandId
- The ID of the brand (required)- Returns:
- List<DomainResponse>
- Throws:
ApiException
- if fails to make API call
-
listBrandDomains
public List<DomainResponse> listBrandDomains(String brandId, Map<String, String> additionalHeaders) throws ApiExceptionList all Domains associated with a Brand Lists all domains associated with a brand by `brandId`- Parameters:
brandId
- The ID of the brand (required)additionalHeaders
- additionalHeaders for this call- Returns:
- List<DomainResponse>
- Throws:
ApiException
- if fails to make API call
-
listBrands
public List<BrandWithEmbedded> listBrands(List<String> expand, String after, Integer limit, String q) throws ApiException List all Brands Lists all the brands in your org- Parameters:
expand
- Specifies additional metadata to be included in the response (optionalafter
- The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](https://developer.okta.com/docs/api/#pagination). (optional)limit
- A limit on the number of objects to return (optional, default to 20)q
- Searches the records for matching value (optional)- Returns:
- List<BrandWithEmbedded>
- Throws:
ApiException
- if fails to make API call
-
listBrands
public List<BrandWithEmbedded> listBrands(List<String> expand, String after, Integer limit, String q, Map<String, String> additionalHeaders) throws ApiExceptionList all Brands Lists all the brands in your org- Parameters:
expand
- Specifies additional metadata to be included in the response (optionalafter
- The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](https://developer.okta.com/docs/api/#pagination). (optional)limit
- A limit on the number of objects to return (optional, default to 20)q
- Searches the records for matching value (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- List<BrandWithEmbedded>
- Throws:
ApiException
- if fails to make API call
-
replaceBrand
Replace a Brand Replaces a brand by `brandId` Passing an invalid `brandId` returns a `404 Not Found` status code with the error code `E0000007`. Not providing `agreeToCustomPrivacyPolicy` with `customPrivacyPolicyUrl` returns a `400 Bad Request` status code with the error code `E0000001`.- Parameters:
brandId
- The ID of the brand (required)brand
- (required)- Returns:
- Brand
- Throws:
ApiException
- if fails to make API call
-
replaceBrand
public Brand replaceBrand(String brandId, BrandRequest brand, Map<String, String> additionalHeaders) throws ApiExceptionReplace a Brand Replaces a brand by `brandId` Passing an invalid `brandId` returns a `404 Not Found` status code with the error code `E0000007`. Not providing `agreeToCustomPrivacyPolicy` with `customPrivacyPolicyUrl` returns a `400 Bad Request` status code with the error code `E0000001`.- Parameters:
brandId
- The ID of the brand (required)brand
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- Brand
- Throws:
ApiException
- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-