public class RepositoryInfo extends Object
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Function<RepositoryInfo,String> |
GET_OSTYPE_FUNCTION
A function that returns the osType of any RepositoryInfo
|
static com.google.common.base.Function<RepositoryInfo,String> |
GET_REPO_ID_FUNCTION
A function that returns the repoId of any RepositoryInfo
|
static com.google.common.base.Function<RepositoryInfo,String> |
GET_REPO_NAME_FUNCTION
A function that returns the repo name of any RepositoryInfo
|
static com.google.common.base.Function<RepositoryInfo,String> |
SAFE_GET_BASE_URL_FUNCTION
A function that returns the baseUrl of any RepositoryInfo
|
Constructor and Description |
---|
RepositoryInfo() |
public static final com.google.common.base.Function<RepositoryInfo,String> GET_REPO_NAME_FUNCTION
public static final com.google.common.base.Function<RepositoryInfo,String> GET_REPO_ID_FUNCTION
public static final com.google.common.base.Function<RepositoryInfo,String> SAFE_GET_BASE_URL_FUNCTION
public static final com.google.common.base.Function<RepositoryInfo,String> GET_OSTYPE_FUNCTION
public String getBaseUrl()
public void setBaseUrl(String baseUrl)
baseUrl
- the baseUrl to setpublic String getOsType()
public void setOsType(String osType)
osType
- the osType to setpublic String getRepoId()
public void setRepoId(String repoId)
repoId
- the repoId to setpublic String getRepoName()
public void setRepoName(String repoName)
repoName
- the repoName to setpublic String getDistribution()
public void setDistribution(String distribution)
public String getComponents()
public void setComponents(String components)
public String getMirrorsList()
public void setMirrorsList(String mirrorsList)
mirrorsList
- the mirrorsList to setpublic String getDefaultBaseUrl()
public void setDefaultBaseUrl(String url)
url
- the default base url to setpublic boolean isRepoSaved()
public void setRepoSaved(boolean saved)
public boolean isUnique()
public void setUnique(boolean unique)
unique
- set is version of HDP that change with each releasepublic RepositoryResponse convertToResponse()
public boolean isAmbariManagedRepositories()
public void setAmbariManagedRepositories(boolean ambariManagedRepositories)
ambariManagedRepositories
- set is repositories managed by ambariCopyright © 2022 Apache Software Foundation. All rights reserved.