Class SubscriptionThrottlePolicyDTO
java.lang.Object
org.wso2.am.integration.clients.admin.api.dto.ThrottlePolicyDTO
org.wso2.am.integration.clients.admin.api.dto.SubscriptionThrottlePolicyDTO
SubscriptionThrottlePolicyDTO
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.wso2.am.integration.clients.admin.api.dto.ThrottlePolicyDTO
SERIALIZED_NAME_DESCRIPTION, SERIALIZED_NAME_DISPLAY_NAME, SERIALIZED_NAME_IS_DEPLOYED, SERIALIZED_NAME_POLICY_ID, SERIALIZED_NAME_POLICY_NAME, SERIALIZED_NAME_TYPE, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbillingPlan(String billingPlan) customAttributes(List<CustomAttributeDTO> customAttributes) defaultLimit(ThrottleLimitDTO defaultLimit) booleandefine whether this is Paid or a Free plan.Custom attributes added to the Subscription Throttling PolicyGet defaultLimitMaximum Complexity of the GraphQL queryMaximum Depth of the GraphQL queryGet monetizationGet permissionsBurst control request countBurst control time unitNumber of subscriptions allowedgraphQLMaxComplexity(Integer graphQLMaxComplexity) graphQLMaxDepth(Integer graphQLMaxDepth) inthashCode()This indicates the action to be taken when a user goes beyond the allocated quota.monetization(MonetizationInfoDTO monetization) permissions(SubscriptionThrottlePolicyPermissionDTO permissions) rateLimitCount(Integer rateLimitCount) rateLimitTimeUnit(String rateLimitTimeUnit) voidsetBillingPlan(String billingPlan) voidsetCustomAttributes(List<CustomAttributeDTO> customAttributes) voidsetDefaultLimit(ThrottleLimitDTO defaultLimit) voidsetGraphQLMaxComplexity(Integer graphQLMaxComplexity) voidsetGraphQLMaxDepth(Integer graphQLMaxDepth) voidsetMonetization(MonetizationInfoDTO monetization) voidsetPermissions(SubscriptionThrottlePolicyPermissionDTO permissions) voidsetRateLimitCount(Integer rateLimitCount) voidsetRateLimitTimeUnit(String rateLimitTimeUnit) voidsetStopOnQuotaReach(Boolean stopOnQuotaReach) voidsetSubscriberCount(Integer subscriberCount) stopOnQuotaReach(Boolean stopOnQuotaReach) subscriberCount(Integer subscriberCount) toString()Methods inherited from class org.wso2.am.integration.clients.admin.api.dto.ThrottlePolicyDTO
description, displayName, getDescription, getDisplayName, getPolicyId, getPolicyName, getType, isDeployed, isIsDeployed, policyId, policyName, setDescription, setDisplayName, setIsDeployed, setPolicyId, setPolicyName, setType, type
-
Field Details
-
SERIALIZED_NAME_GRAPH_Q_L_MAX_COMPLEXITY
- See Also:
-
SERIALIZED_NAME_GRAPH_Q_L_MAX_DEPTH
- See Also:
-
SERIALIZED_NAME_DEFAULT_LIMIT
- See Also:
-
SERIALIZED_NAME_MONETIZATION
- See Also:
-
SERIALIZED_NAME_RATE_LIMIT_COUNT
- See Also:
-
SERIALIZED_NAME_RATE_LIMIT_TIME_UNIT
- See Also:
-
SERIALIZED_NAME_CUSTOM_ATTRIBUTES
- See Also:
-
SERIALIZED_NAME_STOP_ON_QUOTA_REACH
- See Also:
-
SERIALIZED_NAME_BILLING_PLAN
- See Also:
-
SERIALIZED_NAME_PERMISSIONS
- See Also:
-
SERIALIZED_NAME_SUBSCRIBER_COUNT
- See Also:
-
-
Constructor Details
-
SubscriptionThrottlePolicyDTO
public SubscriptionThrottlePolicyDTO()
-
-
Method Details
-
graphQLMaxComplexity
-
getGraphQLMaxComplexity
Maximum Complexity of the GraphQL query- Returns:
- graphQLMaxComplexity
-
setGraphQLMaxComplexity
-
graphQLMaxDepth
-
getGraphQLMaxDepth
Maximum Depth of the GraphQL query- Returns:
- graphQLMaxDepth
-
setGraphQLMaxDepth
-
defaultLimit
-
getDefaultLimit
Get defaultLimit- Returns:
- defaultLimit
-
setDefaultLimit
-
monetization
-
getMonetization
Get monetization- Returns:
- monetization
-
setMonetization
-
rateLimitCount
-
getRateLimitCount
Burst control request count- Returns:
- rateLimitCount
-
setRateLimitCount
-
rateLimitTimeUnit
-
getRateLimitTimeUnit
Burst control time unit- Returns:
- rateLimitTimeUnit
-
setRateLimitTimeUnit
-
customAttributes
-
getCustomAttributes
Custom attributes added to the Subscription Throttling Policy- Returns:
- customAttributes
-
setCustomAttributes
-
stopOnQuotaReach
-
isStopOnQuotaReach
This indicates the action to be taken when a user goes beyond the allocated quota. If checked, the user's requests will be dropped. If unchecked, the requests will be allowed to pass through.- Returns:
- stopOnQuotaReach
-
setStopOnQuotaReach
-
billingPlan
-
getBillingPlan
define whether this is Paid or a Free plan. Allowed values are FREE or COMMERCIAL.- Returns:
- billingPlan
-
setBillingPlan
-
permissions
public SubscriptionThrottlePolicyDTO permissions(SubscriptionThrottlePolicyPermissionDTO permissions) -
getPermissions
Get permissions- Returns:
- permissions
-
setPermissions
-
subscriberCount
-
getSubscriberCount
Number of subscriptions allowed- Returns:
- subscriberCount
-
setSubscriberCount
-
equals
- Overrides:
equalsin classThrottlePolicyDTO
-
hashCode
public int hashCode()- Overrides:
hashCodein classThrottlePolicyDTO
-
toString
- Overrides:
toStringin classThrottlePolicyDTO
-