forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 27231 in Azure/azure-rest-api-specs
Merge 71fecce55180a23d719a26e565cf591aea9daa9d into e8231e95a900521c54c2214b344bd4f80adc4225
- Loading branch information
SDKAuto
committed
Jan 3, 2024
1 parent
b984d70
commit ae2397d
Showing
77 changed files
with
1,228 additions
and
2,012 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
91 changes: 91 additions & 0 deletions
91
...ginx/src/main/java/com/azure/resourcemanager/nginx/fluent/models/AnalysisResultInner.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,91 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
||
package com.azure.resourcemanager.nginx.fluent.models; | ||
|
||
import com.azure.core.annotation.Fluent; | ||
import com.azure.core.util.logging.ClientLogger; | ||
import com.azure.resourcemanager.nginx.models.AnalysisResultData; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* The response body for an analysis request. Contains the status of the analysis and any errors. | ||
*/ | ||
@Fluent | ||
public final class AnalysisResultInner { | ||
/* | ||
* The status of the analysis. | ||
*/ | ||
@JsonProperty(value = "status", required = true) | ||
private String status; | ||
|
||
/* | ||
* The data property. | ||
*/ | ||
@JsonProperty(value = "data") | ||
private AnalysisResultData data; | ||
|
||
/** | ||
* Creates an instance of AnalysisResultInner class. | ||
*/ | ||
public AnalysisResultInner() { | ||
} | ||
|
||
/** | ||
* Get the status property: The status of the analysis. | ||
* | ||
* @return the status value. | ||
*/ | ||
public String status() { | ||
return this.status; | ||
} | ||
|
||
/** | ||
* Set the status property: The status of the analysis. | ||
* | ||
* @param status the status value to set. | ||
* @return the AnalysisResultInner object itself. | ||
*/ | ||
public AnalysisResultInner withStatus(String status) { | ||
this.status = status; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the data property: The data property. | ||
* | ||
* @return the data value. | ||
*/ | ||
public AnalysisResultData data() { | ||
return this.data; | ||
} | ||
|
||
/** | ||
* Set the data property: The data property. | ||
* | ||
* @param data the data value to set. | ||
* @return the AnalysisResultInner object itself. | ||
*/ | ||
public AnalysisResultInner withData(AnalysisResultData data) { | ||
this.data = data; | ||
return this; | ||
} | ||
|
||
/** | ||
* Validates the instance. | ||
* | ||
* @throws IllegalArgumentException thrown if the instance is not valid. | ||
*/ | ||
public void validate() { | ||
if (status() == null) { | ||
throw LOGGER.logExceptionAsError( | ||
new IllegalArgumentException("Missing required property status in model AnalysisResultInner")); | ||
} | ||
if (data() != null) { | ||
data().validate(); | ||
} | ||
} | ||
|
||
private static final ClientLogger LOGGER = new ClientLogger(AnalysisResultInner.class); | ||
} |
Oops, something went wrong.