/** * <p> * The current state of the cluster. * </p> * * @param state * The current state of the cluster. * @return Returns a reference to this object so that method calls can be chained together. * @see ClusterState */ public ClusterStatus withState(String state) { setState(state); return this; }
if (context.testExpression("State", targetDepth)) { context.nextToken(); clusterStatus.setState(context.getUnmarshaller(String.class).unmarshall(context));
if (context.testExpression("State", targetDepth)) { context.nextToken(); clusterStatus.setState(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * The current state of the cluster. * </p> * * @param state * The current state of the cluster. * @return Returns a reference to this object so that method calls can be chained together. * @see ClusterState */ public ClusterStatus withState(String state) { setState(state); return this; }
@Override public DescribeClusterResult answer(InvocationOnMock invocation) throws Throwable { DescribeClusterRequest describeClusterRequest = invocation.getArgument(1); assertEquals(clusterId, describeClusterRequest.getClusterId()); DescribeClusterResult describeClusterResult = new DescribeClusterResult(); Cluster cluster = new Cluster(); ClusterStatus status = new ClusterStatus(); status.setState(expectedState); cluster.setStatus(status); describeClusterResult.setCluster(cluster); return describeClusterResult; } });