Class Configuration
java.lang.Object
com.microsoft.store.partnercenter.configuration.Configuration
public class Configuration extends Object
A configuration holder that keeps a map of APIs and some default configuration values
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfiguration.Api -
Constructor Summary
Constructors Constructor Description Configuration() -
Method Summary
Modifier and Type Method Description Map<String,Configuration.Api>getApis()Gets the available APIs.intgetDefaultAuthenticationTokenExpiryBufferInSeconds()Gets the default authentication token expiry buffer in seconds.StringgetDefaultLocale()Gets the default locale.intgetDefaultMaxRetryAttempts()Gets the default max retry attempts.StringgetPartnerCenterClient()Gets or sets the Partner Center client name.StringgetPartnerServiceApiRoot()Gets the partner service API root.StringgetPartnerServiceApiVersion()Gets the partner service API version.StringgetSdkVersion()Gets the SDK version.voidsetDefaultAuthenticationTokenExpiryBufferInSeconds(int value)Sets the default authentication token expiry buffer in seconds.voidsetDefaultLocale(String value)Sets the default locale.voidsetDefaultMaxRetryAttempts(int value)Sets the default max retry attempts.voidsetPartnerServiceApiRoot(String value)The partner service API root.voidsetPartnerServiceApiVersion(String value)Sets the partner service API version.
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details
-
getPartnerServiceApiRoot
Gets the partner service API root.- Returns:
- The partner service API root.
-
setPartnerServiceApiRoot
The partner service API root.- Parameters:
value- The partner service API root.
-
getPartnerCenterClient
Gets or sets the Partner Center client name.- Returns:
- The Partner Center client name.
-
getPartnerServiceApiVersion
Gets the partner service API version.- Returns:
- The partner service API version.
-
setPartnerServiceApiVersion
Sets the partner service API version.- Parameters:
value- The partner service API version.
-
getDefaultMaxRetryAttempts
public int getDefaultMaxRetryAttempts()Gets the default max retry attempts.- Returns:
- The default max retry attempts.
-
setDefaultMaxRetryAttempts
public void setDefaultMaxRetryAttempts(int value)Sets the default max retry attempts.- Parameters:
value- The default max retry attempts.
-
getDefaultAuthenticationTokenExpiryBufferInSeconds
public int getDefaultAuthenticationTokenExpiryBufferInSeconds()Gets the default authentication token expiry buffer in seconds.- Returns:
- The default authentication token expiry buffer in seconds.
-
setDefaultAuthenticationTokenExpiryBufferInSeconds
public void setDefaultAuthenticationTokenExpiryBufferInSeconds(int value)Sets the default authentication token expiry buffer in seconds.- Parameters:
value- The default authentication token expiry buffer in seconds.
-
getDefaultLocale
Gets the default locale.- Returns:
- The default locale.
-
setDefaultLocale
Sets the default locale.- Parameters:
value- The default locale.
-
getApis
Gets the available APIs.- Returns:
- The available APIs.
-
getSdkVersion
Gets the SDK version.- Returns:
- The version of the SDK.
-