Class MCPServerDTO
- java.lang.Object
-
- org.wso2.am.integration.clients.publisher.api.v1.dto.MCPServerDTO
-
public class MCPServerDTO extends Object
MCPServerDTO
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMCPServerDTO.AccessControlEnumIs the MCP server restricted to certain publishers or creators or is it visible to all publishers and creators.static classMCPServerDTO.SubscriptionAvailabilityEnumThe subscription availability.static classMCPServerDTO.VisibilityEnumThe visibility level of the MCP Server.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MCPServerDTO()
-
Method Summary
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DISPLAY_NAME
public static final String SERIALIZED_NAME_DISPLAY_NAME
- See Also:
- Constant Field Values
-
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_ENDPOINT_CONFIG
public static final String SERIALIZED_NAME_ENDPOINT_CONFIG
- 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_LIFE_CYCLE_STATUS
public static final String SERIALIZED_NAME_LIFE_CYCLE_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_HAS_THUMBNAIL
public static final String SERIALIZED_NAME_HAS_THUMBNAIL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IS_DEFAULT_VERSION
public static final String SERIALIZED_NAME_IS_DEFAULT_VERSION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IS_REVISION
public static final String SERIALIZED_NAME_IS_REVISION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REVISIONED_M_C_P_SERVER_ID
public static final String SERIALIZED_NAME_REVISIONED_M_C_P_SERVER_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REVISION_ID
public static final String SERIALIZED_NAME_REVISION_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENABLE_SCHEMA_VALIDATION
public static final String SERIALIZED_NAME_ENABLE_SCHEMA_VALIDATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_AUDIENCES
public static final String SERIALIZED_NAME_AUDIENCES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TRANSPORT
public static final String SERIALIZED_NAME_TRANSPORT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_POLICIES
public static final String SERIALIZED_NAME_POLICIES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ORGANIZATION_POLICIES
public static final String SERIALIZED_NAME_ORGANIZATION_POLICIES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_THROTTLING_POLICY
public static final String SERIALIZED_NAME_THROTTLING_POLICY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_AUTHORIZATION_HEADER
public static final String SERIALIZED_NAME_AUTHORIZATION_HEADER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_API_KEY_HEADER
public static final String SERIALIZED_NAME_API_KEY_HEADER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SECURITY_SCHEME
public static final String SERIALIZED_NAME_SECURITY_SCHEME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MAX_TPS
public static final String SERIALIZED_NAME_MAX_TPS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VISIBILITY
public static final String SERIALIZED_NAME_VISIBILITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VISIBLE_ROLES
public static final String SERIALIZED_NAME_VISIBLE_ROLES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VISIBLE_TENANTS
public static final String SERIALIZED_NAME_VISIBLE_TENANTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VISIBLE_ORGANIZATIONS
public static final String SERIALIZED_NAME_VISIBLE_ORGANIZATIONS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MCP_SERVER_POLICIES
public static final String SERIALIZED_NAME_MCP_SERVER_POLICIES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUBSCRIPTION_AVAILABILITY
public static final String SERIALIZED_NAME_SUBSCRIPTION_AVAILABILITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUBSCRIPTION_AVAILABLE_TENANTS
public static final String SERIALIZED_NAME_SUBSCRIPTION_AVAILABLE_TENANTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ADDITIONAL_PROPERTIES_MAP
public static final String SERIALIZED_NAME_ADDITIONAL_PROPERTIES_MAP
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MONETIZATION
public static final String SERIALIZED_NAME_MONETIZATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACCESS_CONTROL
public static final String SERIALIZED_NAME_ACCESS_CONTROL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACCESS_CONTROL_ROLES
public static final String SERIALIZED_NAME_ACCESS_CONTROL_ROLES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BUSINESS_INFORMATION
public static final String SERIALIZED_NAME_BUSINESS_INFORMATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CORS_CONFIGURATION
public static final String SERIALIZED_NAME_CORS_CONFIGURATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_WORKFLOW_STATUS
public static final String SERIALIZED_NAME_WORKFLOW_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PROTOCOL_VERSION
public static final String SERIALIZED_NAME_PROTOCOL_VERSION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_TIME
public static final String SERIALIZED_NAME_CREATED_TIME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LAST_UPDATED_TIMESTAMP
public static final String SERIALIZED_NAME_LAST_UPDATED_TIMESTAMP
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LAST_UPDATED_TIME
public static final String SERIALIZED_NAME_LAST_UPDATED_TIME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUBTYPE_CONFIGURATION
public static final String SERIALIZED_NAME_SUBTYPE_CONFIGURATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SCOPES
public static final String SERIALIZED_NAME_SCOPES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_OPERATIONS
public static final String SERIALIZED_NAME_OPERATIONS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CATEGORIES
public static final String SERIALIZED_NAME_CATEGORIES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_KEY_MANAGERS
public static final String SERIALIZED_NAME_KEY_MANAGERS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_GATEWAY_VENDOR
public static final String SERIALIZED_NAME_GATEWAY_VENDOR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_GATEWAY_TYPE
public static final String SERIALIZED_NAME_GATEWAY_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INITIATED_FROM_GATEWAY
public static final String SERIALIZED_NAME_INITIATED_FROM_GATEWAY
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public MCPServerDTO id(String id)
-
setId
public void setId(String id)
-
name
public MCPServerDTO name(String name)
-
getName
public String getName()
Get name- Returns:
- name
-
setName
public void setName(String name)
-
displayName
public MCPServerDTO displayName(String displayName)
-
getDisplayName
@Nullable public String getDisplayName()
Human-friendly name shown in UI. Length limited to DB column size.- Returns:
- displayName
-
setDisplayName
public void setDisplayName(String displayName)
-
description
public MCPServerDTO description(String description)
-
setDescription
public void setDescription(String description)
-
context
public MCPServerDTO context(String context)
-
getContext
public String getContext()
Get context- Returns:
- context
-
setContext
public void setContext(String context)
-
endpointConfig
public MCPServerDTO endpointConfig(Object endpointConfig)
-
getEndpointConfig
@Nullable public Object getEndpointConfig()
Endpoint configuration of the backend.- Returns:
- endpointConfig
-
setEndpointConfig
public void setEndpointConfig(Object endpointConfig)
-
version
public MCPServerDTO version(String version)
-
getVersion
public String getVersion()
Get version- Returns:
- version
-
setVersion
public void setVersion(String version)
-
provider
public MCPServerDTO provider(String provider)
-
getProvider
@Nullable public String getProvider()
If the provider value is not given user invoking the MCP Server will be used as the provider.- Returns:
- provider
-
setProvider
public void setProvider(String provider)
-
lifeCycleStatus
public MCPServerDTO lifeCycleStatus(String lifeCycleStatus)
-
getLifeCycleStatus
@Nullable public String getLifeCycleStatus()
Get lifeCycleStatus- Returns:
- lifeCycleStatus
-
setLifeCycleStatus
public void setLifeCycleStatus(String lifeCycleStatus)
-
hasThumbnail
public MCPServerDTO hasThumbnail(Boolean hasThumbnail)
-
setHasThumbnail
public void setHasThumbnail(Boolean hasThumbnail)
-
isDefaultVersion
public MCPServerDTO isDefaultVersion(Boolean isDefaultVersion)
-
isIsDefaultVersion
@Nullable public Boolean isIsDefaultVersion()
Get isDefaultVersion- Returns:
- isDefaultVersion
-
setIsDefaultVersion
public void setIsDefaultVersion(Boolean isDefaultVersion)
-
isRevision
public MCPServerDTO isRevision(Boolean isRevision)
-
setIsRevision
public void setIsRevision(Boolean isRevision)
-
revisionedMCPServerId
public MCPServerDTO revisionedMCPServerId(String revisionedMCPServerId)
-
getRevisionedMCPServerId
@Nullable public String getRevisionedMCPServerId()
UUID of the artifact- Returns:
- revisionedMCPServerId
-
setRevisionedMCPServerId
public void setRevisionedMCPServerId(String revisionedMCPServerId)
-
revisionId
public MCPServerDTO revisionId(Integer revisionId)
-
setRevisionId
public void setRevisionId(Integer revisionId)
-
enableSchemaValidation
public MCPServerDTO enableSchemaValidation(Boolean enableSchemaValidation)
-
isEnableSchemaValidation
@Nullable public Boolean isEnableSchemaValidation()
Get enableSchemaValidation- Returns:
- enableSchemaValidation
-
setEnableSchemaValidation
public void setEnableSchemaValidation(Boolean enableSchemaValidation)
-
audiences
public MCPServerDTO audiences(List<String> audiences)
-
getAudiences
@Nullable public List<String> getAudiences()
The audiences of the MCP Server for jwt validation. Accepted values are any String values- Returns:
- audiences
-
transport
public MCPServerDTO transport(List<String> transport)
-
getTransport
@Nullable public List<String> getTransport()
Supported transports for the MCP Server (http and/or https).- Returns:
- transport
-
tags
public MCPServerDTO tags(List<String> tags)
-
policies
public MCPServerDTO policies(List<String> policies)
-
organizationPolicies
public MCPServerDTO organizationPolicies(List<OrganizationPoliciesDTO> organizationPolicies)
-
getOrganizationPolicies
@Nullable public List<OrganizationPoliciesDTO> getOrganizationPolicies()
Get organizationPolicies- Returns:
- organizationPolicies
-
setOrganizationPolicies
public void setOrganizationPolicies(List<OrganizationPoliciesDTO> organizationPolicies)
-
throttlingPolicy
public MCPServerDTO throttlingPolicy(String throttlingPolicy)
-
getThrottlingPolicy
@Nullable public String getThrottlingPolicy()
The MCP Server level throttling policy selected.- Returns:
- throttlingPolicy
-
setThrottlingPolicy
public void setThrottlingPolicy(String throttlingPolicy)
-
authorizationHeader
public MCPServerDTO authorizationHeader(String authorizationHeader)
-
getAuthorizationHeader
@Nullable public String getAuthorizationHeader()
Name of the Authorization header used for invoking the MCP Server. If it is not set, Authorization header name specified in tenant or system level will be used.- Returns:
- authorizationHeader
-
setAuthorizationHeader
public void setAuthorizationHeader(String authorizationHeader)
-
apiKeyHeader
public MCPServerDTO apiKeyHeader(String apiKeyHeader)
-
getApiKeyHeader
@Nullable public String getApiKeyHeader()
Name of the API key header used for invoking the MCP Server. If it is not set, default value`apiKey` will be used.- Returns:
- apiKeyHeader
-
setApiKeyHeader
public void setApiKeyHeader(String apiKeyHeader)
-
securityScheme
public MCPServerDTO securityScheme(List<String> securityScheme)
-
getSecurityScheme
@Nullable public List<String> getSecurityScheme()
Types of API security, the current MCP Server secured with. It can be either OAuth2 or mutual SSLor both. If it is not set OAuth2 will be set as the security.- Returns:
- securityScheme
-
maxTps
public MCPServerDTO maxTps(MaxTpsDTO maxTps)
-
setMaxTps
public void setMaxTps(MaxTpsDTO maxTps)
-
visibility
public MCPServerDTO visibility(MCPServerDTO.VisibilityEnum visibility)
-
getVisibility
@Nullable public MCPServerDTO.VisibilityEnum getVisibility()
The visibility level of the MCP Server. Accepts one of the following: PUBLIC, PRIVATE, RESTRICTED.- Returns:
- visibility
-
setVisibility
public void setVisibility(MCPServerDTO.VisibilityEnum visibility)
-
visibleRoles
public MCPServerDTO visibleRoles(List<String> visibleRoles)
-
getVisibleRoles
@Nullable public List<String> getVisibleRoles()
The user roles that are able to access the MCP Server in Developer Portal- Returns:
- visibleRoles
-
visibleTenants
public MCPServerDTO visibleTenants(List<String> visibleTenants)
-
getVisibleTenants
@Nullable public List<String> getVisibleTenants()
Get visibleTenants- Returns:
- visibleTenants
-
visibleOrganizations
public MCPServerDTO visibleOrganizations(List<String> visibleOrganizations)
-
getVisibleOrganizations
@Nullable public List<String> getVisibleOrganizations()
The organizations that are able to access the MCP server in Developer Portal- Returns:
- visibleOrganizations
-
mcpServerPolicies
public MCPServerDTO mcpServerPolicies(MCPServerOperationPoliciesDTO mcpServerPolicies)
-
getMcpServerPolicies
@Nullable public MCPServerOperationPoliciesDTO getMcpServerPolicies()
Get mcpServerPolicies- Returns:
- mcpServerPolicies
-
setMcpServerPolicies
public void setMcpServerPolicies(MCPServerOperationPoliciesDTO mcpServerPolicies)
-
subscriptionAvailability
public MCPServerDTO subscriptionAvailability(MCPServerDTO.SubscriptionAvailabilityEnum subscriptionAvailability)
-
getSubscriptionAvailability
@Nullable public MCPServerDTO.SubscriptionAvailabilityEnum getSubscriptionAvailability()
The subscription availability. Accepts one of the following: CURRENT_TENANT, ALL_TENANTS, or SPECIFIC_TENANTS.- Returns:
- subscriptionAvailability
-
setSubscriptionAvailability
public void setSubscriptionAvailability(MCPServerDTO.SubscriptionAvailabilityEnum subscriptionAvailability)
-
subscriptionAvailableTenants
public MCPServerDTO subscriptionAvailableTenants(List<String> subscriptionAvailableTenants)
-
getSubscriptionAvailableTenants
@Nullable public List<String> getSubscriptionAvailableTenants()
Get subscriptionAvailableTenants- Returns:
- subscriptionAvailableTenants
-
setSubscriptionAvailableTenants
public void setSubscriptionAvailableTenants(List<String> subscriptionAvailableTenants)
-
additionalPropertiesMap
public MCPServerDTO additionalPropertiesMap(Map<String,APIInfoAdditionalPropertiesMapDTO> additionalPropertiesMap)
-
getAdditionalPropertiesMap
@Nullable public Map<String,APIInfoAdditionalPropertiesMapDTO> getAdditionalPropertiesMap()
Get additionalPropertiesMap- Returns:
- additionalPropertiesMap
-
setAdditionalPropertiesMap
public void setAdditionalPropertiesMap(Map<String,APIInfoAdditionalPropertiesMapDTO> additionalPropertiesMap)
-
monetization
public MCPServerDTO monetization(APIMonetizationInfoDTO monetization)
-
getMonetization
@Nullable public APIMonetizationInfoDTO getMonetization()
Get monetization- Returns:
- monetization
-
setMonetization
public void setMonetization(APIMonetizationInfoDTO monetization)
-
accessControl
public MCPServerDTO accessControl(MCPServerDTO.AccessControlEnum accessControl)
-
getAccessControl
@Nullable public MCPServerDTO.AccessControlEnum getAccessControl()
Is the MCP server restricted to certain publishers or creators or is it visible to all publishers and creators. If the accessControl restriction is NONE, this can be modified by all publishers and creators. Otherwise, it can only be viewable/modifiable by a specific set of users based on the restriction.- Returns:
- accessControl
-
setAccessControl
public void setAccessControl(MCPServerDTO.AccessControlEnum accessControl)
-
accessControlRoles
public MCPServerDTO accessControlRoles(List<String> accessControlRoles)
-
getAccessControlRoles
@Nullable public List<String> getAccessControlRoles()
The user roles that are able to view/modify as publisher or creator.- Returns:
- accessControlRoles
-
businessInformation
public MCPServerDTO businessInformation(APIBusinessInformationDTO businessInformation)
-
getBusinessInformation
@Nullable public APIBusinessInformationDTO getBusinessInformation()
Get businessInformation- Returns:
- businessInformation
-
setBusinessInformation
public void setBusinessInformation(APIBusinessInformationDTO businessInformation)
-
corsConfiguration
public MCPServerDTO corsConfiguration(APICorsConfigurationDTO corsConfiguration)
-
getCorsConfiguration
@Nullable public APICorsConfigurationDTO getCorsConfiguration()
Get corsConfiguration- Returns:
- corsConfiguration
-
setCorsConfiguration
public void setCorsConfiguration(APICorsConfigurationDTO corsConfiguration)
-
workflowStatus
public MCPServerDTO workflowStatus(String workflowStatus)
-
getWorkflowStatus
@Nullable public String getWorkflowStatus()
Get workflowStatus- Returns:
- workflowStatus
-
setWorkflowStatus
public void setWorkflowStatus(String workflowStatus)
-
protocolVersion
public MCPServerDTO protocolVersion(String protocolVersion)
-
getProtocolVersion
@Nullable public String getProtocolVersion()
Get protocolVersion- Returns:
- protocolVersion
-
setProtocolVersion
public void setProtocolVersion(String protocolVersion)
-
createdTime
public MCPServerDTO createdTime(String createdTime)
-
setCreatedTime
public void setCreatedTime(String createdTime)
-
lastUpdatedTimestamp
public MCPServerDTO lastUpdatedTimestamp(String lastUpdatedTimestamp)
-
getLastUpdatedTimestamp
@Nullable public String getLastUpdatedTimestamp()
Get lastUpdatedTimestamp- Returns:
- lastUpdatedTimestamp
-
setLastUpdatedTimestamp
public void setLastUpdatedTimestamp(String lastUpdatedTimestamp)
-
lastUpdatedTime
public MCPServerDTO lastUpdatedTime(String lastUpdatedTime)
-
getLastUpdatedTime
@Nullable public String getLastUpdatedTime()
Get lastUpdatedTime- Returns:
- lastUpdatedTime
-
setLastUpdatedTime
public void setLastUpdatedTime(String lastUpdatedTime)
-
subtypeConfiguration
public MCPServerDTO subtypeConfiguration(SubtypeConfigurationDTO subtypeConfiguration)
-
getSubtypeConfiguration
@Nullable public SubtypeConfigurationDTO getSubtypeConfiguration()
Get subtypeConfiguration- Returns:
- subtypeConfiguration
-
setSubtypeConfiguration
public void setSubtypeConfiguration(SubtypeConfigurationDTO subtypeConfiguration)
-
scopes
public MCPServerDTO scopes(List<MCPServerScopeDTO> scopes)
-
getScopes
@Nullable public List<MCPServerScopeDTO> getScopes()
Get scopes- Returns:
- scopes
-
setScopes
public void setScopes(List<MCPServerScopeDTO> scopes)
-
operations
public MCPServerDTO operations(List<MCPServerOperationDTO> operations)
-
getOperations
@Nullable public List<MCPServerOperationDTO> getOperations()
Get operations- Returns:
- operations
-
setOperations
public void setOperations(List<MCPServerOperationDTO> operations)
-
categories
public MCPServerDTO categories(List<String> categories)
-
getCategories
@Nullable public List<String> getCategories()
MCP Server categories- Returns:
- categories
-
keyManagers
public MCPServerDTO keyManagers(Object keyManagers)
-
setKeyManagers
public void setKeyManagers(Object keyManagers)
-
gatewayVendor
public MCPServerDTO gatewayVendor(String gatewayVendor)
-
getGatewayVendor
@Nullable public String getGatewayVendor()
Get gatewayVendor- Returns:
- gatewayVendor
-
setGatewayVendor
public void setGatewayVendor(String gatewayVendor)
-
gatewayType
public MCPServerDTO gatewayType(String gatewayType)
-
getGatewayType
@Nullable public String getGatewayType()
The gateway type selected for the policies. Accepts one of the following: wso2/synapse, wso2/apk, AWS.- Returns:
- gatewayType
-
setGatewayType
public void setGatewayType(String gatewayType)
-
initiatedFromGateway
public MCPServerDTO initiatedFromGateway(Boolean initiatedFromGateway)
-
isInitiatedFromGateway
@Nullable public Boolean isInitiatedFromGateway()
Whether the MCP Server is initiated from the gateway or not. This is used to identify whether the MCP Server is created from the publisher or discovered from the gateway.- Returns:
- initiatedFromGateway
-
setInitiatedFromGateway
public void setInitiatedFromGateway(Boolean initiatedFromGateway)
-
-