次の方法で共有


TargetDescription Class

  • java.lang.Object
    • com.azure.resourcemanager.quantum.models.TargetDescription

Implements

public final class TargetDescription
implements JsonSerializable<TargetDescription>

Information about a Target. A target is the component that can process a specific type of Job.

Constructor Summary

Constructor Description
TargetDescription()

Creates an instance of TargetDescription class.

Method Summary

Modifier and Type Method and Description
List<String> acceptedContentEncodings()

Get the acceptedContentEncodings property: List of content encodings accepted by this target.

List<String> acceptedDataFormats()

Get the acceptedDataFormats property: List of data formats accepted by this target.

String description()

Get the description property: A description about this target.

static TargetDescription fromJson(JsonReader jsonReader)

Reads an instance of TargetDescription from the JsonReader.

String id()

Get the id property: Unique target id.

String name()

Get the name property: Display name of this target.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TargetDescription withAcceptedContentEncodings(List<String> acceptedContentEncodings)

Set the acceptedContentEncodings property: List of content encodings accepted by this target.

TargetDescription withAcceptedDataFormats(List<String> acceptedDataFormats)

Set the acceptedDataFormats property: List of data formats accepted by this target.

TargetDescription withDescription(String description)

Set the description property: A description about this target.

TargetDescription withId(String id)

Set the id property: Unique target id.

TargetDescription withName(String name)

Set the name property: Display name of this target.

Methods inherited from java.lang.Object

Constructor Details

TargetDescription

public TargetDescription()

Creates an instance of TargetDescription class.

Method Details

acceptedContentEncodings

public List<String> acceptedContentEncodings()

Get the acceptedContentEncodings property: List of content encodings accepted by this target.

Returns:

the acceptedContentEncodings value.

acceptedDataFormats

public List<String> acceptedDataFormats()

Get the acceptedDataFormats property: List of data formats accepted by this target.

Returns:

the acceptedDataFormats value.

description

public String description()

Get the description property: A description about this target.

Returns:

the description value.

fromJson

public static TargetDescription fromJson(JsonReader jsonReader)

Reads an instance of TargetDescription from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TargetDescription 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 TargetDescription.

id

public String id()

Get the id property: Unique target id.

Returns:

the id value.

name

public String name()

Get the name property: Display name of this target.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAcceptedContentEncodings

public TargetDescription withAcceptedContentEncodings(List<String> acceptedContentEncodings)

Set the acceptedContentEncodings property: List of content encodings accepted by this target.

Parameters:

acceptedContentEncodings - the acceptedContentEncodings value to set.

Returns:

the TargetDescription object itself.

withAcceptedDataFormats

public TargetDescription withAcceptedDataFormats(List<String> acceptedDataFormats)

Set the acceptedDataFormats property: List of data formats accepted by this target.

Parameters:

acceptedDataFormats - the acceptedDataFormats value to set.

Returns:

the TargetDescription object itself.

withDescription

public TargetDescription withDescription(String description)

Set the description property: A description about this target.

Parameters:

description - the description value to set.

Returns:

the TargetDescription object itself.

withId

public TargetDescription withId(String id)

Set the id property: Unique target id.

Parameters:

id - the id value to set.

Returns:

the TargetDescription object itself.

withName

public TargetDescription withName(String name)

Set the name property: Display name of this target.

Parameters:

name - the name value to set.

Returns:

the TargetDescription object itself.

Applies to