Class APISearchResultDTO
- java.lang.Object
-
- org.wso2.am.integration.clients.publisher.api.v1.dto.SearchResultDTO
-
- org.wso2.am.integration.clients.publisher.api.v1.dto.APISearchResultDTO
-
public class APISearchResultDTO extends SearchResultDTO
APISearchResultDTO
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.wso2.am.integration.clients.publisher.api.v1.dto.SearchResultDTO
SearchResultDTO.TypeEnum
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_ADVERTISE_ONLYstatic StringSERIALIZED_NAME_CONTEXTstatic StringSERIALIZED_NAME_CONTEXT_TEMPLATEstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_PROVIDERstatic StringSERIALIZED_NAME_STATUSstatic StringSERIALIZED_NAME_THUMBNAIL_URIstatic StringSERIALIZED_NAME_VERSION-
Fields inherited from class org.wso2.am.integration.clients.publisher.api.v1.dto.SearchResultDTO
name, SERIALIZED_NAME_ID, SERIALIZED_NAME_NAME, SERIALIZED_NAME_TRANSPORT_TYPE, SERIALIZED_NAME_TYPE
-
-
Constructor Summary
Constructors Constructor Description APISearchResultDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description APISearchResultDTOadvertiseOnly(Boolean advertiseOnly)APISearchResultDTOcontext(String context)APISearchResultDTOcontextTemplate(String contextTemplate)APISearchResultDTOdescription(String description)booleanequals(Object o)StringgetContext()A string that represents the context of the user's requestStringgetContextTemplate()The templated context of the APIStringgetDescription()A brief description about the APIStringgetProvider()If the provider value is not given, the user invoking the API will be used as the provider.StringgetStatus()This describes in which status of the lifecycle the API isStringgetThumbnailUri()Get thumbnailUriStringgetVersion()The version of the APIinthashCode()BooleanisAdvertiseOnly()Get advertiseOnlyAPISearchResultDTOprovider(String provider)voidsetAdvertiseOnly(Boolean advertiseOnly)voidsetContext(String context)voidsetContextTemplate(String contextTemplate)voidsetDescription(String description)voidsetProvider(String provider)voidsetStatus(String status)voidsetThumbnailUri(String thumbnailUri)voidsetVersion(String version)APISearchResultDTOstatus(String status)APISearchResultDTOthumbnailUri(String thumbnailUri)StringtoString()APISearchResultDTOversion(String version)-
Methods inherited from class org.wso2.am.integration.clients.publisher.api.v1.dto.SearchResultDTO
getId, getName, getTransportType, getType, id, name, setId, setName, setTransportType, setType, transportType, type
-
-
-
-
Field Detail
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CONTEXT
public static final String SERIALIZED_NAME_CONTEXT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CONTEXT_TEMPLATE
public static final String SERIALIZED_NAME_CONTEXT_TEMPLATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VERSION
public static final String SERIALIZED_NAME_VERSION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PROVIDER
public static final String SERIALIZED_NAME_PROVIDER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_THUMBNAIL_URI
public static final String SERIALIZED_NAME_THUMBNAIL_URI
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ADVERTISE_ONLY
public static final String SERIALIZED_NAME_ADVERTISE_ONLY
- See Also:
- Constant Field Values
-
-
Method Detail
-
description
public APISearchResultDTO description(String description)
-
getDescription
@Nullable public String getDescription()
A brief description about the API- Returns:
- description
-
setDescription
public void setDescription(String description)
-
context
public APISearchResultDTO context(String context)
-
getContext
@Nullable public String getContext()
A string that represents the context of the user's request- Returns:
- context
-
setContext
public void setContext(String context)
-
contextTemplate
public APISearchResultDTO contextTemplate(String contextTemplate)
-
getContextTemplate
@Nullable public String getContextTemplate()
The templated context of the API- Returns:
- contextTemplate
-
setContextTemplate
public void setContextTemplate(String contextTemplate)
-
version
public APISearchResultDTO version(String version)
-
setVersion
public void setVersion(String version)
-
provider
public APISearchResultDTO provider(String provider)
-
getProvider
@Nullable public String getProvider()
If the provider value is not given, the user invoking the API will be used as the provider.- Returns:
- provider
-
setProvider
public void setProvider(String provider)
-
status
public APISearchResultDTO status(String status)
-
getStatus
@Nullable public String getStatus()
This describes in which status of the lifecycle the API is- Returns:
- status
-
setStatus
public void setStatus(String status)
-
thumbnailUri
public APISearchResultDTO thumbnailUri(String thumbnailUri)
-
setThumbnailUri
public void setThumbnailUri(String thumbnailUri)
-
advertiseOnly
public APISearchResultDTO advertiseOnly(Boolean advertiseOnly)
-
setAdvertiseOnly
public void setAdvertiseOnly(Boolean advertiseOnly)
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classSearchResultDTO
-
hashCode
public int hashCode()
- Overrides:
hashCodein classSearchResultDTO
-
toString
public String toString()
- Overrides:
toStringin classSearchResultDTO
-
-