类 AddStepsRequest


  • public class AddStepsRequest
    extends AbstractBceRequest
    Provide options for adding steps to the target cluster.

    The essential option is the ID of cluster, and the List of steps can be constructed by calling the methods of StepConfig.

    • 构造器详细资料

      • AddStepsRequest

        public AddStepsRequest()
    • 方法详细资料

      • getClusterId

        public String getClusterId()
      • setClusterId

        public void setClusterId​(String clusterId)
      • getClientToken

        public String getClientToken()
      • setClientToken

        public void setClientToken​(String clientToken)
      • withClusterId

        public AddStepsRequest withClusterId​(String clusterId)
        Configure the ID of the cluster.
        参数:
        clusterId - The ID of the cluster.
        返回:
        AddStepsRequest
      • withStep

        public AddStepsRequest withStep​(StepConfig step)
        Configure the step to be added.
        参数:
        step - a StepConfig object to be added.
        返回:
        AddStepsRequest
      • withSteps

        public AddStepsRequest withSteps​(List<StepConfig> steps)
        Configure the steps to be added. This method will replace the AddStepsRequest instance's steps by the @param steps totally, thus it should be invoked ahead of withStep method if both of them are used for the same AddStepsRequest instance.
        参数:
        steps - a List of StepConfig instances to be added.
        返回:
        AddStepsRequest
      • withClientToken

        public AddStepsRequest withClientToken​(String clientToken)
        Configure optional client token for the request. The request will be idempotent if client token is provided.
        参数:
        clientToken - An ASCII string whose length is less than 64.
        返回:
        AddStepsRequest