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.
/** * 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.dns; import com.fasterxml.jackson.annotation.JsonProperty;
An SRV record.
/** * An SRV record. */
public class SrvRecord {
The priority value for this SRV record.
/** * The priority value for this SRV record. */
@JsonProperty(value = "priority") private Integer priority;
The weight value for this SRV record.
/** * The weight value for this SRV record. */
@JsonProperty(value = "weight") private Integer weight;
The port value for this SRV record.
/** * The port value for this SRV record. */
@JsonProperty(value = "port") private Integer port;
The target domain name for this SRV record.
/** * The target domain name for this SRV record. */
@JsonProperty(value = "target") private String target;
Get the priority value.
Returns:the priority value
/** * Get the priority value. * * @return the priority value */
public Integer priority() { return this.priority; }
Set the priority value.
Params:
  • priority – the priority value to set
Returns:the SrvRecord object itself.
/** * Set the priority value. * * @param priority the priority value to set * @return the SrvRecord object itself. */
public SrvRecord withPriority(Integer priority) { this.priority = priority; return this; }
Get the weight value.
Returns:the weight value
/** * Get the weight value. * * @return the weight value */
public Integer weight() { return this.weight; }
Set the weight value.
Params:
  • weight – the weight value to set
Returns:the SrvRecord object itself.
/** * Set the weight value. * * @param weight the weight value to set * @return the SrvRecord object itself. */
public SrvRecord withWeight(Integer weight) { this.weight = weight; return this; }
Get the port value.
Returns:the port value
/** * Get the port value. * * @return the port value */
public Integer port() { return this.port; }
Set the port value.
Params:
  • port – the port value to set
Returns:the SrvRecord object itself.
/** * Set the port value. * * @param port the port value to set * @return the SrvRecord object itself. */
public SrvRecord withPort(Integer port) { this.port = port; return this; }
Get the target value.
Returns:the target value
/** * Get the target value. * * @return the target value */
public String target() { return this.target; }
Set the target value.
Params:
  • target – the target value to set
Returns:the SrvRecord object itself.
/** * Set the target value. * * @param target the target value to set * @return the SrvRecord object itself. */
public SrvRecord withTarget(String target) { this.target = target; return this; } }