Method description
Modifies some configurations of a cluster. For more information, see API Reference.
Parameter description
ClusterDescription instance
Response description
If the call succeeds, a UpdateClusterResponse instance is returned.
If a failure occurs, a ClientException is thrown.
Sample code
try{ClusterDescription desc = new ClusterDescription();GroupDescription groupDesc = new GroupDescription();//The expected number of VMs can be modified. The value ranges from 0 to n.groupDesc.setDesiredVMCount(3);//The spot strategy can be modified.groupDesc.setSpotStrategy("SpotWithPriceLimit");groupDesc.setSpotPriceLimit(0.6f);desc.addGroup("group1", groupDesc);UpdateClusterResponse response = client.updateCluster(desc);//Succeeded}catch(ClientException e){e.printStackTrace();// Failed}