TestProfile Class

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

Implements

public final class TestProfile
implements JsonSerializable<TestProfile>

Test Profile Model. The Test Profile Model. A Test Profile resource enables you to set up a test profile which contains various configurations for a supported resource type and a load test to execute on that resource.

Constructor Summary

Constructor Description
TestProfile()

Creates an instance of TestProfile class.

Method Summary

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

Reads an instance of TestProfile from the JsonReader.

String getCreatedBy()

Get the createdBy property: The user that created.

OffsetDateTime getCreatedDateTime()

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

String getDescription()

Get the description property: Description for the test profile.

String getDisplayName()

Get the displayName property: Display name of the test profile.

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).

TargetResourceConfigurations getTargetResourceConfigurations()

Get the targetResourceConfigurations property: Configurations of the target resource on which testing would be done.

String getTargetResourceId()

Get the targetResourceId property: Target resource ID on which the test profile is created.

String getTestId()

Get the testId property: Associated test ID for the test profile.

String getTestProfileId()

Get the testProfileId property: Unique identifier for the test profile, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.

TestProfile setDescription(String description)

Set the description property: Description for the test profile.

TestProfile setDisplayName(String displayName)

Set the displayName property: Display name of the test profile.

TestProfile setTargetResourceConfigurations(TargetResourceConfigurations targetResourceConfigurations)

Set the targetResourceConfigurations property: Configurations of the target resource on which testing would be done.

TestProfile setTargetResourceId(String targetResourceId)

Set the targetResourceId property: Target resource ID on which the test profile is created.

TestProfile setTestId(String testId)

Set the testId property: Associated test ID for the test profile.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

TestProfile

public TestProfile()

Creates an instance of TestProfile class.

Method Details

fromJson

public static TestProfile fromJson(JsonReader jsonReader)

Reads an instance of TestProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TestProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

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.

getDescription

public String getDescription()

Get the description property: Description for the test profile.

Returns:

the description value.

getDisplayName

public String getDisplayName()

Get the displayName property: Display name of the test profile.

Returns:

the displayName 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.

getTargetResourceConfigurations

public TargetResourceConfigurations getTargetResourceConfigurations()

Get the targetResourceConfigurations property: Configurations of the target resource on which testing would be done.

Returns:

the targetResourceConfigurations value.

getTargetResourceId

public String getTargetResourceId()

Get the targetResourceId property: Target resource ID on which the test profile is created. This property is required for creating a Test Profile and it's not allowed to be updated.

Returns:

the targetResourceId value.

getTestId

public String getTestId()

Get the testId property: Associated test ID for the test profile. This property is required for creating a Test Profile and it's not allowed to be updated.

Returns:

the testId value.

getTestProfileId

public String getTestProfileId()

Get the testProfileId property: Unique identifier for the test profile, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.

Returns:

the testProfileId value.

setDescription

public TestProfile setDescription(String description)

Set the description property: Description for the test profile.

Parameters:

description - the description value to set.

Returns:

the TestProfile object itself.

setDisplayName

public TestProfile setDisplayName(String displayName)

Set the displayName property: Display name of the test profile.

Parameters:

displayName - the displayName value to set.

Returns:

the TestProfile object itself.

setTargetResourceConfigurations

public TestProfile setTargetResourceConfigurations(TargetResourceConfigurations targetResourceConfigurations)

Set the targetResourceConfigurations property: Configurations of the target resource on which testing would be done.

Parameters:

targetResourceConfigurations - the targetResourceConfigurations value to set.

Returns:

the TestProfile object itself.

setTargetResourceId

public TestProfile setTargetResourceId(String targetResourceId)

Set the targetResourceId property: Target resource ID on which the test profile is created. This property is required for creating a Test Profile and it's not allowed to be updated.

Parameters:

targetResourceId - the targetResourceId value to set.

Returns:

the TestProfile object itself.

setTestId

public TestProfile setTestId(String testId)

Set the testId property: Associated test ID for the test profile. This property is required for creating a Test Profile and it's not allowed to be updated.

Parameters:

testId - the testId value to set.

Returns:

the TestProfile object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to