Class ThresholdStub

  • All Implemented Interfaces:
    Threshold, ThresholdTypes, com.vmware.vapi.bindings.Service

    public class ThresholdStub
    extends com.vmware.vapi.internal.bindings.Stub
    implements Threshold
    Remote stub implementation of the Threshold API service.

    WARNING: Internal class, subject to change in future versions.

    • Field Summary

      • Fields inherited from class com.vmware.vapi.internal.bindings.Stub

        apiProvider, converter, ifaceId, retryPolicy, securityContext
    • Constructor Summary

      Constructors 
      Constructor Description
      ThresholdStub​(com.vmware.vapi.core.ApiProvider apiProvider, com.vmware.vapi.bindings.StubConfigurationBase config)  
      ThresholdStub​(com.vmware.vapi.core.ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, com.vmware.vapi.bindings.StubConfigurationBase config)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CapacityThresholdList get()
      Returns warning threshold(s) set for NSX Objects.
      void get​(com.vmware.vapi.bindings.client.AsyncCallback<CapacityThresholdList> asyncCallback)
      Returns warning threshold(s) set for NSX Objects.
      void get​(com.vmware.vapi.bindings.client.AsyncCallback<CapacityThresholdList> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Returns warning threshold(s) set for NSX Objects.
      CapacityThresholdList get​(com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Returns warning threshold(s) set for NSX Objects.
      void patch​(CapacityThreshold capacityThreshold)
      Updates the warning threshold(s) for NSX Objects specified, does not modify thresholds for any other objects.
      void patch​(CapacityThreshold capacityThreshold, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
      Updates the warning threshold(s) for NSX Objects specified, does not modify thresholds for any other objects.
      void patch​(CapacityThreshold capacityThreshold, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Updates the warning threshold(s) for NSX Objects specified, does not modify thresholds for any other objects.
      void patch​(CapacityThreshold capacityThreshold, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Updates the warning threshold(s) for NSX Objects specified, does not modify thresholds for any other objects.
      CapacityThresholdList update​(CapacityThresholdList capacityThresholdList)
      Updates the warning threshold(s) for NSX Objects specified, and returns new threshold(s).
      void update​(CapacityThresholdList capacityThresholdList, com.vmware.vapi.bindings.client.AsyncCallback<CapacityThresholdList> asyncCallback)
      Updates the warning threshold(s) for NSX Objects specified, and returns new threshold(s).
      void update​(CapacityThresholdList capacityThresholdList, com.vmware.vapi.bindings.client.AsyncCallback<CapacityThresholdList> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Updates the warning threshold(s) for NSX Objects specified, and returns new threshold(s).
      CapacityThresholdList update​(CapacityThresholdList capacityThresholdList, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Updates the warning threshold(s) for NSX Objects specified, and returns new threshold(s).
      • Methods inherited from class com.vmware.vapi.internal.bindings.Stub

        invokeMethod, invokeMethodAsync, invokeStreamMethod, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ThresholdStub

        public ThresholdStub​(com.vmware.vapi.core.ApiProvider apiProvider,
                             com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
                             com.vmware.vapi.bindings.StubConfigurationBase config)
      • ThresholdStub

        public ThresholdStub​(com.vmware.vapi.core.ApiProvider apiProvider,
                             com.vmware.vapi.bindings.StubConfigurationBase config)
    • Method Detail

      • get

        public CapacityThresholdList get()
        Description copied from interface: Threshold
        Returns warning threshold(s) set for NSX Objects.

        Synchronous method overload. Result of the invocation will be reported as a method return value.

        Specified by:
        get in interface Threshold
        Returns:
        com.vmware.nsx_policy.model.CapacityThresholdList
      • get

        public CapacityThresholdList get​(com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Description copied from interface: Threshold
        Returns warning threshold(s) set for NSX Objects.

        Synchronous method overload. Result of the invocation will be reported as a method return value. Use invocationConfig to specify configuration for this particular invocation.

        Specified by:
        get in interface Threshold
        Parameters:
        invocationConfig - Configuration for the method invocation.
        Returns:
        com.vmware.nsx_policy.model.CapacityThresholdList
      • get

        public void get​(com.vmware.vapi.bindings.client.AsyncCallback<CapacityThresholdList> asyncCallback)
        Description copied from interface: Threshold
        Returns warning threshold(s) set for NSX Objects.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback.

        Invocation Result:
        com.vmware.nsx_policy.model.CapacityThresholdList

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Specified by:
        get in interface Threshold
        Parameters:
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
      • get

        public void get​(com.vmware.vapi.bindings.client.AsyncCallback<CapacityThresholdList> asyncCallback,
                        com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Description copied from interface: Threshold
        Returns warning threshold(s) set for NSX Objects.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback. Use invocationConfig to specify configuration for this particular invocation.

        Invocation Result:
        com.vmware.nsx_policy.model.CapacityThresholdList

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Specified by:
        get in interface Threshold
        Parameters:
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
        invocationConfig - Configuration for the method invocation.
      • patch

        public void patch​(CapacityThreshold capacityThreshold)
        Description copied from interface: Threshold
        Updates the warning threshold(s) for NSX Objects specified, does not modify thresholds for any other objects. Threshold type NUMBER_OF_GATEWAY_POLICY is deprecated instead use NUMBER_OF_GATEWAY_FIREWALL_RULES.

        Synchronous method overload. Result of the invocation will be reported as a method return value.

        Specified by:
        patch in interface Threshold
        Parameters:
        capacityThreshold - (required)
      • patch

        public void patch​(CapacityThreshold capacityThreshold,
                          com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Description copied from interface: Threshold
        Updates the warning threshold(s) for NSX Objects specified, does not modify thresholds for any other objects. Threshold type NUMBER_OF_GATEWAY_POLICY is deprecated instead use NUMBER_OF_GATEWAY_FIREWALL_RULES.

        Synchronous method overload. Result of the invocation will be reported as a method return value. Use invocationConfig to specify configuration for this particular invocation.

        Specified by:
        patch in interface Threshold
        Parameters:
        capacityThreshold - (required)
        invocationConfig - Configuration for the method invocation.
      • patch

        public void patch​(CapacityThreshold capacityThreshold,
                          com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
        Description copied from interface: Threshold
        Updates the warning threshold(s) for NSX Objects specified, does not modify thresholds for any other objects. Threshold type NUMBER_OF_GATEWAY_POLICY is deprecated instead use NUMBER_OF_GATEWAY_FIREWALL_RULES.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback.

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Specified by:
        patch in interface Threshold
        Parameters:
        capacityThreshold - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
      • patch

        public void patch​(CapacityThreshold capacityThreshold,
                          com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback,
                          com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Description copied from interface: Threshold
        Updates the warning threshold(s) for NSX Objects specified, does not modify thresholds for any other objects. Threshold type NUMBER_OF_GATEWAY_POLICY is deprecated instead use NUMBER_OF_GATEWAY_FIREWALL_RULES.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback. Use invocationConfig to specify configuration for this particular invocation.

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Specified by:
        patch in interface Threshold
        Parameters:
        capacityThreshold - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
        invocationConfig - Configuration for the method invocation.
      • update

        public CapacityThresholdList update​(CapacityThresholdList capacityThresholdList)
        Description copied from interface: Threshold
        Updates the warning threshold(s) for NSX Objects specified, and returns new threshold(s). Threshold list in the request must contain value for GLOBAL_DEFAULT threshold_type which represents global thresholds. Threshold type NUMBER_OF_GATEWAY_POLICY is deprecated instead use NUMBER_OF_GATEWAY_FIREWALL_RULES.

        Synchronous method overload. Result of the invocation will be reported as a method return value.

        Specified by:
        update in interface Threshold
        Parameters:
        capacityThresholdList - (required)
        Returns:
        com.vmware.nsx_policy.model.CapacityThresholdList
      • update

        public CapacityThresholdList update​(CapacityThresholdList capacityThresholdList,
                                            com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Description copied from interface: Threshold
        Updates the warning threshold(s) for NSX Objects specified, and returns new threshold(s). Threshold list in the request must contain value for GLOBAL_DEFAULT threshold_type which represents global thresholds. Threshold type NUMBER_OF_GATEWAY_POLICY is deprecated instead use NUMBER_OF_GATEWAY_FIREWALL_RULES.

        Synchronous method overload. Result of the invocation will be reported as a method return value. Use invocationConfig to specify configuration for this particular invocation.

        Specified by:
        update in interface Threshold
        Parameters:
        capacityThresholdList - (required)
        invocationConfig - Configuration for the method invocation.
        Returns:
        com.vmware.nsx_policy.model.CapacityThresholdList
      • update

        public void update​(CapacityThresholdList capacityThresholdList,
                           com.vmware.vapi.bindings.client.AsyncCallback<CapacityThresholdList> asyncCallback)
        Description copied from interface: Threshold
        Updates the warning threshold(s) for NSX Objects specified, and returns new threshold(s). Threshold list in the request must contain value for GLOBAL_DEFAULT threshold_type which represents global thresholds. Threshold type NUMBER_OF_GATEWAY_POLICY is deprecated instead use NUMBER_OF_GATEWAY_FIREWALL_RULES.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback.

        Invocation Result:
        com.vmware.nsx_policy.model.CapacityThresholdList

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Specified by:
        update in interface Threshold
        Parameters:
        capacityThresholdList - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
      • update

        public void update​(CapacityThresholdList capacityThresholdList,
                           com.vmware.vapi.bindings.client.AsyncCallback<CapacityThresholdList> asyncCallback,
                           com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Description copied from interface: Threshold
        Updates the warning threshold(s) for NSX Objects specified, and returns new threshold(s). Threshold list in the request must contain value for GLOBAL_DEFAULT threshold_type which represents global thresholds. Threshold type NUMBER_OF_GATEWAY_POLICY is deprecated instead use NUMBER_OF_GATEWAY_FIREWALL_RULES.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback. Use invocationConfig to specify configuration for this particular invocation.

        Invocation Result:
        com.vmware.nsx_policy.model.CapacityThresholdList

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Specified by:
        update in interface Threshold
        Parameters:
        capacityThresholdList - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
        invocationConfig - Configuration for the method invocation.