Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.trafficmanager;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Parameters supplied to check Traffic Manager name operation.
*/
public class CheckTrafficManagerRelativeDnsNameAvailabilityParameters {
/**
* The name of the resource.
*/
@JsonProperty(value = "name")
private String name;

/**
* The type of the resource.
*/
@JsonProperty(value = "type")
private String type;

/**
* Get the name value.
*
* @return the name value
*/
public String name() {
return this.name;
}

/**
* Set the name value.
*
* @param name the name value to set
* @return the CheckTrafficManagerRelativeDnsNameAvailabilityParameters object itself.
*/
public CheckTrafficManagerRelativeDnsNameAvailabilityParameters withName(String name) {
this.name = name;
return this;
}

/**
* Get the type value.
*
* @return the type value
*/
public String type() {
return this.type;
}

/**
* Set the type value.
*
* @param type the type value to set
* @return the CheckTrafficManagerRelativeDnsNameAvailabilityParameters object itself.
*/
public CheckTrafficManagerRelativeDnsNameAvailabilityParameters withType(String type) {
this.type = type;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,64 +8,46 @@

package com.microsoft.azure.management.trafficmanager;

import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for EndpointMonitorStatus.
*/
public final class EndpointMonitorStatus {
public final class EndpointMonitorStatus extends ExpandableStringEnum<EndpointMonitorStatus> {
/** Static value CheckingEndpoint for EndpointMonitorStatus. */
public static final EndpointMonitorStatus CHECKING_ENDPOINT = new EndpointMonitorStatus("CheckingEndpoint");
public static final EndpointMonitorStatus CHECKING_ENDPOINT = fromString("CheckingEndpoint");

/** Static value Online for EndpointMonitorStatus. */
public static final EndpointMonitorStatus ONLINE = new EndpointMonitorStatus("Online");
public static final EndpointMonitorStatus ONLINE = fromString("Online");

/** Static value Degraded for EndpointMonitorStatus. */
public static final EndpointMonitorStatus DEGRADED = new EndpointMonitorStatus("Degraded");
public static final EndpointMonitorStatus DEGRADED = fromString("Degraded");

/** Static value Disabled for EndpointMonitorStatus. */
public static final EndpointMonitorStatus DISABLED = new EndpointMonitorStatus("Disabled");
public static final EndpointMonitorStatus DISABLED = fromString("Disabled");

/** Static value Inactive for EndpointMonitorStatus. */
public static final EndpointMonitorStatus INACTIVE = new EndpointMonitorStatus("Inactive");
public static final EndpointMonitorStatus INACTIVE = fromString("Inactive");

/** Static value Stopped for EndpointMonitorStatus. */
public static final EndpointMonitorStatus STOPPED = new EndpointMonitorStatus("Stopped");

private String value;
public static final EndpointMonitorStatus STOPPED = fromString("Stopped");

/**
* Creates a custom value for EndpointMonitorStatus.
* @param value the custom value
* Creates or finds a EndpointMonitorStatus from its string representation.
* @param name a name to look for
* @return the corresponding EndpointMonitorStatus
*/
public EndpointMonitorStatus(String value) {
this.value = value;
}

@JsonValue
@Override
public String toString() {
return value;
@JsonCreator
public static EndpointMonitorStatus fromString(String name) {
return fromString(name, EndpointMonitorStatus.class);
}

@Override
public int hashCode() {
return value.hashCode();
}

@Override
public boolean equals(Object obj) {
if (!(obj instanceof EndpointMonitorStatus)) {
return false;
}
if (obj == this) {
return true;
}
EndpointMonitorStatus rhs = (EndpointMonitorStatus) obj;
if (value == null) {
return rhs.value == null;
} else {
return value.equals(rhs.value);
}
/**
* @return known EndpointMonitorStatus values
*/
public static Collection<EndpointMonitorStatus> values() {
return values(EndpointMonitorStatus.class);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.trafficmanager;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Custom header name and value.
*/
public class EndpointPropertiesCustomHeadersItem {
/**
* Header name.
*/
@JsonProperty(value = "name")
private String name;

/**
* Header value.
*/
@JsonProperty(value = "value")
private String value;

/**
* Get the name value.
*
* @return the name value
*/
public String name() {
return this.name;
}

/**
* Set the name value.
*
* @param name the name value to set
* @return the EndpointPropertiesCustomHeadersItem object itself.
*/
public EndpointPropertiesCustomHeadersItem withName(String name) {
this.name = name;
return this;
}

/**
* Get the value value.
*
* @return the value value
*/
public String value() {
return this.value;
}

/**
* Set the value value.
*
* @param value the value value to set
* @return the EndpointPropertiesCustomHeadersItem object itself.
*/
public EndpointPropertiesCustomHeadersItem withValue(String value) {
this.value = value;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,52 +8,34 @@

package com.microsoft.azure.management.trafficmanager;

import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for EndpointStatus.
*/
public final class EndpointStatus {
public final class EndpointStatus extends ExpandableStringEnum<EndpointStatus> {
/** Static value Enabled for EndpointStatus. */
public static final EndpointStatus ENABLED = new EndpointStatus("Enabled");
public static final EndpointStatus ENABLED = fromString("Enabled");

/** Static value Disabled for EndpointStatus. */
public static final EndpointStatus DISABLED = new EndpointStatus("Disabled");

private String value;
public static final EndpointStatus DISABLED = fromString("Disabled");

/**
* Creates a custom value for EndpointStatus.
* @param value the custom value
* Creates or finds a EndpointStatus from its string representation.
* @param name a name to look for
* @return the corresponding EndpointStatus
*/
public EndpointStatus(String value) {
this.value = value;
}

@JsonValue
@Override
public String toString() {
return value;
@JsonCreator
public static EndpointStatus fromString(String name) {
return fromString(name, EndpointStatus.class);
}

@Override
public int hashCode() {
return value.hashCode();
}

@Override
public boolean equals(Object obj) {
if (!(obj instanceof EndpointStatus)) {
return false;
}
if (obj == this) {
return true;
}
EndpointStatus rhs = (EndpointStatus) obj;
if (value == null) {
return rhs.value == null;
} else {
return value.equals(rhs.value);
}
/**
* @return known EndpointStatus values
*/
public static Collection<EndpointStatus> values() {
return values(EndpointStatus.class);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.trafficmanager;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Class which is a sparse representation of a Traffic Manager endpoint.
*/
public class HeatMapEndpoint {
/**
* The ARM Resource ID of this Traffic Manager endpoint.
*/
@JsonProperty(value = "resourceId")
private String resourceId;

/**
* A number uniquely identifying this endpoint in query experiences.
*/
@JsonProperty(value = "endpointId")
private Integer endpointId;

/**
* Get the resourceId value.
*
* @return the resourceId value
*/
public String resourceId() {
return this.resourceId;
}

/**
* Set the resourceId value.
*
* @param resourceId the resourceId value to set
* @return the HeatMapEndpoint object itself.
*/
public HeatMapEndpoint withResourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}

/**
* Get the endpointId value.
*
* @return the endpointId value
*/
public Integer endpointId() {
return this.endpointId;
}

/**
* Set the endpointId value.
*
* @param endpointId the endpointId value to set
* @return the HeatMapEndpoint object itself.
*/
public HeatMapEndpoint withEndpointId(Integer endpointId) {
this.endpointId = endpointId;
return this;
}

}
Loading