com.google.api.services.testing.model.TestExecution Maven / Gradle / Ivy
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/google/apis-client-generator/
* (build: 2018-10-08 17:45:39 UTC)
* on 2019-04-09 at 00:25:22 UTC
* Modify at your own risk.
*/
package com.google.api.services.testing.model;
/**
* Specifies a single test to be executed in a single environment.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Cloud Testing API. For a detailed explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class TestExecution extends com.google.api.client.json.GenericJson {
/**
* Output only. How the host machine(s) are configured.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Environment environment;
/**
* Output only. Unique id set by the backend.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String id;
/**
* Output only. Id of the containing TestMatrix.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String matrixId;
/**
* Output only. The cloud project that owns the test execution.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String projectId;
/**
* Output only. Indicates the current progress of the test execution (e.g., FINISHED).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String state;
/**
* Output only. Additional details about the running test.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private TestDetails testDetails;
/**
* Output only. How to run the test.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private TestSpecification testSpecification;
/**
* Output only. The time this test execution was initially created.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String timestamp;
/**
* Output only. Where the results for this execution are written.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ToolResultsStep toolResultsStep;
/**
* Output only. How the host machine(s) are configured.
* @return value or {@code null} for none
*/
public Environment getEnvironment() {
return environment;
}
/**
* Output only. How the host machine(s) are configured.
* @param environment environment or {@code null} for none
*/
public TestExecution setEnvironment(Environment environment) {
this.environment = environment;
return this;
}
/**
* Output only. Unique id set by the backend.
* @return value or {@code null} for none
*/
public java.lang.String getId() {
return id;
}
/**
* Output only. Unique id set by the backend.
* @param id id or {@code null} for none
*/
public TestExecution setId(java.lang.String id) {
this.id = id;
return this;
}
/**
* Output only. Id of the containing TestMatrix.
* @return value or {@code null} for none
*/
public java.lang.String getMatrixId() {
return matrixId;
}
/**
* Output only. Id of the containing TestMatrix.
* @param matrixId matrixId or {@code null} for none
*/
public TestExecution setMatrixId(java.lang.String matrixId) {
this.matrixId = matrixId;
return this;
}
/**
* Output only. The cloud project that owns the test execution.
* @return value or {@code null} for none
*/
public java.lang.String getProjectId() {
return projectId;
}
/**
* Output only. The cloud project that owns the test execution.
* @param projectId projectId or {@code null} for none
*/
public TestExecution setProjectId(java.lang.String projectId) {
this.projectId = projectId;
return this;
}
/**
* Output only. Indicates the current progress of the test execution (e.g., FINISHED).
* @return value or {@code null} for none
*/
public java.lang.String getState() {
return state;
}
/**
* Output only. Indicates the current progress of the test execution (e.g., FINISHED).
* @param state state or {@code null} for none
*/
public TestExecution setState(java.lang.String state) {
this.state = state;
return this;
}
/**
* Output only. Additional details about the running test.
* @return value or {@code null} for none
*/
public TestDetails getTestDetails() {
return testDetails;
}
/**
* Output only. Additional details about the running test.
* @param testDetails testDetails or {@code null} for none
*/
public TestExecution setTestDetails(TestDetails testDetails) {
this.testDetails = testDetails;
return this;
}
/**
* Output only. How to run the test.
* @return value or {@code null} for none
*/
public TestSpecification getTestSpecification() {
return testSpecification;
}
/**
* Output only. How to run the test.
* @param testSpecification testSpecification or {@code null} for none
*/
public TestExecution setTestSpecification(TestSpecification testSpecification) {
this.testSpecification = testSpecification;
return this;
}
/**
* Output only. The time this test execution was initially created.
* @return value or {@code null} for none
*/
public String getTimestamp() {
return timestamp;
}
/**
* Output only. The time this test execution was initially created.
* @param timestamp timestamp or {@code null} for none
*/
public TestExecution setTimestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
/**
* Output only. Where the results for this execution are written.
* @return value or {@code null} for none
*/
public ToolResultsStep getToolResultsStep() {
return toolResultsStep;
}
/**
* Output only. Where the results for this execution are written.
* @param toolResultsStep toolResultsStep or {@code null} for none
*/
public TestExecution setToolResultsStep(ToolResultsStep toolResultsStep) {
this.toolResultsStep = toolResultsStep;
return this;
}
@Override
public TestExecution set(String fieldName, Object value) {
return (TestExecution) super.set(fieldName, value);
}
@Override
public TestExecution clone() {
return (TestExecution) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy