TestAppComponents Class

  • java.lang.Object
    • com.azure.developer.loadtesting.models.TestAppComponents

Implements

public final class TestAppComponents
implements JsonSerializable<TestAppComponents>

Test app components.

Constructor Summary

Constructor Description
TestAppComponents()

Creates an instance of TestAppComponents class.

Method Summary

Modifier and Type Method and Description
static TestAppComponents fromJson(JsonReader jsonReader)

Reads an instance of TestAppComponents from the JsonReader.

Map<String,LoadTestingAppComponent> getComponents()

Get the components property: Azure resource collection { resource id (fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}) : resource object }.

String getCreatedBy()

Get the createdBy property: The user that created.

OffsetDateTime getCreatedDateTime()

Get the createdDateTime property: The creation datetime(RFC 3339 literal format).

String getLastModifiedBy()

Get the lastModifiedBy property: The user that last modified.

OffsetDateTime getLastModifiedDateTime()

Get the lastModifiedDateTime property: The last Modified datetime(RFC 3339 literal format).

String getTestId()

Get the testId property: Test identifier.

TestAppComponents setComponents(Map<String,LoadTestingAppComponent> components)

Set the components property: Azure resource collection { resource id (fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}) : resource object }.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

TestAppComponents

public TestAppComponents()

Creates an instance of TestAppComponents class.

Method Details

fromJson

public static TestAppComponents fromJson(JsonReader jsonReader)

Reads an instance of TestAppComponents from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getComponents

public Map<String,LoadTestingAppComponent> getComponents()

Get the components property: Azure resource collection { resource id (fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}) : resource object }.

Returns:

the components value.

getCreatedBy

public String getCreatedBy()

Get the createdBy property: The user that created.

Returns:

the createdBy value.

getCreatedDateTime

public OffsetDateTime getCreatedDateTime()

Get the createdDateTime property: The creation datetime(RFC 3339 literal format).

Returns:

the createdDateTime value.

getLastModifiedBy

public String getLastModifiedBy()

Get the lastModifiedBy property: The user that last modified.

Returns:

the lastModifiedBy value.

getLastModifiedDateTime

public OffsetDateTime getLastModifiedDateTime()

Get the lastModifiedDateTime property: The last Modified datetime(RFC 3339 literal format).

Returns:

the lastModifiedDateTime value.

getTestId

public String getTestId()

Get the testId property: Test identifier.

Returns:

the testId value.

setComponents

public TestAppComponents setComponents(Map<String,LoadTestingAppComponent> components)

Set the components property: Azure resource collection { resource id (fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}) : resource object }.

Required when create the resource.

Parameters:

components - the components value to set.

Returns:

the TestAppComponents object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to