public class Probe extends ChildResource
| Constructor and Description |
|---|
Probe()
Initializes a new instance of the Probe class.
|
Probe(String protocol,
int port)
Initializes a new instance of the Probe class with required arguments.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIntervalInSeconds()
Optional.
|
ArrayList<ResourceId> |
getLoadBalancingRules()
Optional.
|
int |
getNumberOfProbes()
Optional.
|
int |
getPort()
Required.
|
String |
getProtocol()
Required.
|
String |
getProvisioningState()
Optional.
|
String |
getRequestPath()
Optional.
|
void |
setIntervalInSeconds(int intervalInSecondsValue)
Optional.
|
void |
setLoadBalancingRules(ArrayList<ResourceId> loadBalancingRulesValue)
Optional.
|
void |
setNumberOfProbes(int numberOfProbesValue)
Optional.
|
void |
setPort(int portValue)
Required.
|
void |
setProtocol(String protocolValue)
Required.
|
void |
setProvisioningState(String provisioningStateValue)
Optional.
|
void |
setRequestPath(String requestPathValue)
Optional.
|
getEtag, getName, setEtag, setNamegetId, setIdpublic Probe()
public Probe(String protocol, int port)
protocol - Gets or sets the protocol of the end point. Possible
values are http pr Tcp. If Tcp is specified, a received ACK is required
for the probe to be successful. If http is specified,a 200 OK response
from the specifies URI is required for the probe to be successfulport - Gets or sets Port for communicating the probe. Possible
values range from 1 to 65535, inclusive.public int getIntervalInSeconds()
public void setIntervalInSeconds(int intervalInSecondsValue)
intervalInSecondsValue - The IntervalInSeconds value.public ArrayList<ResourceId> getLoadBalancingRules()
public void setLoadBalancingRules(ArrayList<ResourceId> loadBalancingRulesValue)
loadBalancingRulesValue - The LoadBalancingRules value.public int getNumberOfProbes()
public void setNumberOfProbes(int numberOfProbesValue)
numberOfProbesValue - The NumberOfProbes value.public int getPort()
public void setPort(int portValue)
portValue - The Port value.public String getProtocol()
public void setProtocol(String protocolValue)
protocolValue - The Protocol value.public String getProvisioningState()
public void setProvisioningState(String provisioningStateValue)
provisioningStateValue - The ProvisioningState value.public String getRequestPath()
public void setRequestPath(String requestPathValue)
requestPathValue - The RequestPath value./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/