Skip to content
Closed
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

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// 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.

/**
* This package contains the implementation classes for SpeechServicesAPIv20.
* Speech Services API v2.0.
*/
package com.microsoft.azure.cognitiveservices.speechservices.implementation;
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
/**
* 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.cognitiveservices.speechservices.models;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Component.
*/
public class Component {
/**
* The name property.
*/
@JsonProperty(value = "name")
private String name;

/**
* The type property.
*/
@JsonProperty(value = "type")
private String type;

/**
* Possible values include: 'Healthy', 'Sick', 'Error'.
*/
@JsonProperty(value = "status")
private String status;

/**
* The message property.
*/
@JsonProperty(value = "message")
private String message;

/**
* 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 Component object itself.
*/
public Component 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 Component object itself.
*/
public Component withType(String type) {
this.type = type;
return this;
}

/**
* Get possible values include: 'Healthy', 'Sick', 'Error'.
*
* @return the status value
*/
public String status() {
return this.status;
}

/**
* Set possible values include: 'Healthy', 'Sick', 'Error'.
*
* @param status the status value to set
* @return the Component object itself.
*/
public Component withStatus(String status) {
this.status = status;
return this;
}

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

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
/**
* 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.cognitiveservices.speechservices.models;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Defines headers for CreateAccuracyTest operation.
*/
public class CreateAccuracyTestHeaders {
/**
* The limit of requests for the resource.
*/
@JsonProperty(value = "X-RateLimit-Limit")
private Integer xRateLimitLimit;

/**
* The remaining number of requests until the rate limit is reached.
*/
@JsonProperty(value = "X-RateLimit-Remaining")
private Integer xRateLimitRemaining;

/**
* The timestamp when the rate limit will be reset formatted as ISO 8601
* combined date and time in UTC.
*/
@JsonProperty(value = "X-RateLimit-Reset")
private String xRateLimitReset;

/**
* The minimum number of seconds to wait before not getting this response
* anymore.
*/
@JsonProperty(value = "Retry-After")
private Integer retryAfter;

/**
* Get the limit of requests for the resource.
*
* @return the xRateLimitLimit value
*/
public Integer xRateLimitLimit() {
return this.xRateLimitLimit;
}

/**
* Set the limit of requests for the resource.
*
* @param xRateLimitLimit the xRateLimitLimit value to set
* @return the CreateAccuracyTestHeaders object itself.
*/
public CreateAccuracyTestHeaders withXRateLimitLimit(Integer xRateLimitLimit) {
this.xRateLimitLimit = xRateLimitLimit;
return this;
}

/**
* Get the remaining number of requests until the rate limit is reached.
*
* @return the xRateLimitRemaining value
*/
public Integer xRateLimitRemaining() {
return this.xRateLimitRemaining;
}

/**
* Set the remaining number of requests until the rate limit is reached.
*
* @param xRateLimitRemaining the xRateLimitRemaining value to set
* @return the CreateAccuracyTestHeaders object itself.
*/
public CreateAccuracyTestHeaders withXRateLimitRemaining(Integer xRateLimitRemaining) {
this.xRateLimitRemaining = xRateLimitRemaining;
return this;
}

/**
* Get the timestamp when the rate limit will be reset formatted as ISO 8601 combined date and time in UTC.
*
* @return the xRateLimitReset value
*/
public String xRateLimitReset() {
return this.xRateLimitReset;
}

/**
* Set the timestamp when the rate limit will be reset formatted as ISO 8601 combined date and time in UTC.
*
* @param xRateLimitReset the xRateLimitReset value to set
* @return the CreateAccuracyTestHeaders object itself.
*/
public CreateAccuracyTestHeaders withXRateLimitReset(String xRateLimitReset) {
this.xRateLimitReset = xRateLimitReset;
return this;
}

/**
* Get the minimum number of seconds to wait before not getting this response anymore.
*
* @return the retryAfter value
*/
public Integer retryAfter() {
return this.retryAfter;
}

/**
* Set the minimum number of seconds to wait before not getting this response anymore.
*
* @param retryAfter the retryAfter value to set
* @return the CreateAccuracyTestHeaders object itself.
*/
public CreateAccuracyTestHeaders withRetryAfter(Integer retryAfter) {
this.retryAfter = retryAfter;
return this;
}

}
Loading