forked from Azure/azure-libraries-for-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR network/resource-manager] Network Watcher: Suppressing a vali…
…dation message (#112) * Generated from 857a54b5f417a5d53c2715d3d852e99e159d4fec Network watcher: Fixed property name in ConnectivityCheckRequest: HTTPConfiguration -> httpConfiguration * Generated from 51b3f3e34c0cc3a9afa0477cba19f434ab443124 Fixed message in warning supression
- Loading branch information
1 parent
11de7d9
commit 0346118
Showing
1 changed file
with
96 additions
and
0 deletions.
There are no files selected for viewing
96 changes: 96 additions & 0 deletions
96
...-mgmt-network/src/main/java/com/microsoft/azure/management/network/HttpConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
/** | ||
* 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.network; | ||
|
||
import java.util.List; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* HTTP configuration of the connectivity check. | ||
*/ | ||
public class HttpConfiguration { | ||
/** | ||
* HTTP method. Possible values include: 'Get'. | ||
*/ | ||
@JsonProperty(value = "method") | ||
private HTTPMethod method; | ||
|
||
/** | ||
* List of HTTP headers. | ||
*/ | ||
@JsonProperty(value = "headers") | ||
private List<HTTPHeader> headers; | ||
|
||
/** | ||
* Valid status codes. | ||
*/ | ||
@JsonProperty(value = "validStatusCodes") | ||
private List<Integer> validStatusCodes; | ||
|
||
/** | ||
* Get the method value. | ||
* | ||
* @return the method value | ||
*/ | ||
public HTTPMethod method() { | ||
return this.method; | ||
} | ||
|
||
/** | ||
* Set the method value. | ||
* | ||
* @param method the method value to set | ||
* @return the HttpConfiguration object itself. | ||
*/ | ||
public HttpConfiguration withMethod(HTTPMethod method) { | ||
this.method = method; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the headers value. | ||
* | ||
* @return the headers value | ||
*/ | ||
public List<HTTPHeader> headers() { | ||
return this.headers; | ||
} | ||
|
||
/** | ||
* Set the headers value. | ||
* | ||
* @param headers the headers value to set | ||
* @return the HttpConfiguration object itself. | ||
*/ | ||
public HttpConfiguration withHeaders(List<HTTPHeader> headers) { | ||
this.headers = headers; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the validStatusCodes value. | ||
* | ||
* @return the validStatusCodes value | ||
*/ | ||
public List<Integer> validStatusCodes() { | ||
return this.validStatusCodes; | ||
} | ||
|
||
/** | ||
* Set the validStatusCodes value. | ||
* | ||
* @param validStatusCodes the validStatusCodes value to set | ||
* @return the HttpConfiguration object itself. | ||
*/ | ||
public HttpConfiguration withValidStatusCodes(List<Integer> validStatusCodes) { | ||
this.validStatusCodes = validStatusCodes; | ||
return this; | ||
} | ||
|
||
} |