com.azure.ai.metricsadvisor.implementation.models.AzureTableParameterPatch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-ai-metricsadvisor Show documentation
Show all versions of azure-ai-metricsadvisor Show documentation
This package contains the Microsoft Azure Cognitive Services Metrics Advisor SDK.
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.ai.metricsadvisor.implementation.models;
import com.azure.core.annotation.Fluent;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import java.io.IOException;
/**
* The AzureTableParameterPatch model.
*/
@Fluent
public final class AzureTableParameterPatch implements JsonSerializable {
/*
* The connection string of this Azure Table
*/
private String connectionString;
/*
* A table name in this Azure Table
*/
private String table;
/*
* The statement to query this table. Please find syntax and details from Azure Table documents.
*/
private String query;
/**
* Creates an instance of AzureTableParameterPatch class.
*/
public AzureTableParameterPatch() {
}
/**
* Get the connectionString property: The connection string of this Azure Table.
*
* @return the connectionString value.
*/
public String getConnectionString() {
return this.connectionString;
}
/**
* Set the connectionString property: The connection string of this Azure Table.
*
* @param connectionString the connectionString value to set.
* @return the AzureTableParameterPatch object itself.
*/
public AzureTableParameterPatch setConnectionString(String connectionString) {
this.connectionString = connectionString;
return this;
}
/**
* Get the table property: A table name in this Azure Table.
*
* @return the table value.
*/
public String getTable() {
return this.table;
}
/**
* Set the table property: A table name in this Azure Table.
*
* @param table the table value to set.
* @return the AzureTableParameterPatch object itself.
*/
public AzureTableParameterPatch setTable(String table) {
this.table = table;
return this;
}
/**
* Get the query property: The statement to query this table. Please find syntax and details from Azure Table
* documents.
*
* @return the query value.
*/
public String getQuery() {
return this.query;
}
/**
* Set the query property: The statement to query this table. Please find syntax and details from Azure Table
* documents.
*
* @param query the query value to set.
* @return the AzureTableParameterPatch object itself.
*/
public AzureTableParameterPatch setQuery(String query) {
this.query = query;
return this;
}
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("connectionString", this.connectionString);
jsonWriter.writeStringField("table", this.table);
jsonWriter.writeStringField("query", this.query);
return jsonWriter.writeEndObject();
}
/**
* Reads an instance of AzureTableParameterPatch from the JsonReader.
*
* @param jsonReader The JsonReader being read.
* @return An instance of AzureTableParameterPatch if the JsonReader was pointing to an instance of it, or null if
* it was pointing to JSON null.
* @throws IOException If an error occurs while reading the AzureTableParameterPatch.
*/
public static AzureTableParameterPatch fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
AzureTableParameterPatch deserializedAzureTableParameterPatch = new AzureTableParameterPatch();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("connectionString".equals(fieldName)) {
deserializedAzureTableParameterPatch.connectionString = reader.getString();
} else if ("table".equals(fieldName)) {
deserializedAzureTableParameterPatch.table = reader.getString();
} else if ("query".equals(fieldName)) {
deserializedAzureTableParameterPatch.query = reader.getString();
} else {
reader.skipChildren();
}
}
return deserializedAzureTableParameterPatch;
});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy