/** * @param hostTags list of tags to be added to the host */ public static AddHostOptions hostTags(Set<String> hostTags) { return new AddHostOptions().hostTags(hostTags); }
/** * @param allocationState Allocation state of this Host for allocation of new resources */ public static AddHostOptions allocationState(AllocationState allocationState) { return new AddHostOptions().allocationState(allocationState); }
/** * @param clusterName the cluster name for the host */ public static AddHostOptions clusterName(String clusterName) { return new AddHostOptions().clusterName(clusterName); }
/** * @param podId the Pod ID for the host */ public static AddHostOptions podId(String podId) { return new AddHostOptions().podId(podId); }
/** * @param clusterId the cluster ID for the host */ public static AddHostOptions clusterId(String clusterId) { return new AddHostOptions().clusterId(clusterId); }
/** * @param allocationState Allocation state of this Host for allocation of new resources */ public static AddHostOptions allocationState(AllocationState allocationState) { return new AddHostOptions().allocationState(allocationState); }
/** * @param clusterId the cluster ID for the host */ public static AddHostOptions clusterId(String clusterId) { return new AddHostOptions().clusterId(clusterId); }
/** * @param hostTags list of tags to be added to the host */ public static AddHostOptions hostTags(Set<String> hostTags) { return new AddHostOptions().hostTags(hostTags); }
/** * @param podId the Pod ID for the host */ public static AddHostOptions podId(String podId) { return new AddHostOptions().podId(podId); }
/** * @param clusterName the cluster name for the host */ public static AddHostOptions clusterName(String clusterName) { return new AddHostOptions().clusterName(clusterName); }
/** * @param allocationState Allocation state of this Host for allocation of new resources */ public static AddHostOptions allocationState(AllocationState allocationState) { return new AddHostOptions().allocationState(allocationState); }
/** * @param clusterName the cluster name for the host */ public static AddHostOptions clusterName(String clusterName) { return new AddHostOptions().clusterName(clusterName); }
/** * @param podId the Pod ID for the host */ public static AddHostOptions podId(String podId) { return new AddHostOptions().podId(podId); }
/** * @param hostTags list of tags to be added to the host */ public static AddHostOptions hostTags(Set<String> hostTags) { return new AddHostOptions().hostTags(hostTags); }
public void testHostTags() { AddHostOptions options = new AddHostOptions().hostTags(ImmutableSet.<String>of("foo", "bar", "baz")); assertEquals(ImmutableList.of("foo,bar,baz"), options.buildQueryParameters().get("hosttags")); }
public void testPodId() { AddHostOptions options = new AddHostOptions().podId("42"); assertEquals(ImmutableList.of("42"), options.buildQueryParameters().get("podid")); }
public void testClusterId() { AddHostOptions options = new AddHostOptions().clusterId("42"); assertEquals(ImmutableList.of("42"), options.buildQueryParameters().get("clusterid")); }
public void testAllocationState() { AddHostOptions options = new AddHostOptions().allocationState(AllocationState.ENABLED); assertEquals(ImmutableList.of("Enabled"), options.buildQueryParameters().get("allocationstate")); }
public void testPodId() { AddHostOptions options = new AddHostOptions().podId("42"); assertEquals(ImmutableList.of("42"), options.buildQueryParameters().get("podid")); }
public void testClusterName() { AddHostOptions options = new AddHostOptions().clusterName("Cluster Name"); assertEquals(ImmutableList.of("Cluster Name"), options.buildQueryParameters().get("clustername")); }