/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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. */ package com.amazonaws.services.codebuild.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateReportGroupRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the report group. *
*/ private String name; /** ** The type of report group. *
*/ private String type; /** *
* A ReportExportConfig
object that contains information about where the report group test results are
* exported.
*
* A list of tag key and value pairs associated with this report group. *
** These tags are available for use by Amazon Web Services services that support CodeBuild report group tags. *
*/ private java.util.List* The name of the report group. *
* * @param name * The name of the report group. */ public void setName(String name) { this.name = name; } /** ** The name of the report group. *
* * @return The name of the report group. */ public String getName() { return this.name; } /** ** The name of the report group. *
* * @param name * The name of the report group. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateReportGroupRequest withName(String name) { setName(name); return this; } /** ** The type of report group. *
* * @param type * The type of report group. * @see ReportType */ public void setType(String type) { this.type = type; } /** ** The type of report group. *
* * @return The type of report group. * @see ReportType */ public String getType() { return this.type; } /** ** The type of report group. *
* * @param type * The type of report group. * @return Returns a reference to this object so that method calls can be chained together. * @see ReportType */ public CreateReportGroupRequest withType(String type) { setType(type); return this; } /** ** The type of report group. *
* * @param type * The type of report group. * @return Returns a reference to this object so that method calls can be chained together. * @see ReportType */ public CreateReportGroupRequest withType(ReportType type) { this.type = type.toString(); return this; } /** *
* A ReportExportConfig
object that contains information about where the report group test results are
* exported.
*
ReportExportConfig
object that contains information about where the report group test
* results are exported.
*/
public void setExportConfig(ReportExportConfig exportConfig) {
this.exportConfig = exportConfig;
}
/**
*
* A ReportExportConfig
object that contains information about where the report group test results are
* exported.
*
ReportExportConfig
object that contains information about where the report group test
* results are exported.
*/
public ReportExportConfig getExportConfig() {
return this.exportConfig;
}
/**
*
* A ReportExportConfig
object that contains information about where the report group test results are
* exported.
*
ReportExportConfig
object that contains information about where the report group test
* results are exported.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReportGroupRequest withExportConfig(ReportExportConfig exportConfig) {
setExportConfig(exportConfig);
return this;
}
/**
* * A list of tag key and value pairs associated with this report group. *
** These tags are available for use by Amazon Web Services services that support CodeBuild report group tags. *
* * @return A list of tag key and value pairs associated with this report group. *
* These tags are available for use by Amazon Web Services services that support CodeBuild report group
* tags.
*/
public java.util.List
* A list of tag key and value pairs associated with this report group.
*
* These tags are available for use by Amazon Web Services services that support CodeBuild report group tags.
*
* These tags are available for use by Amazon Web Services services that support CodeBuild report group tags.
*/
public void setTags(java.util.Collection
* A list of tag key and value pairs associated with this report group.
*
* These tags are available for use by Amazon Web Services services that support CodeBuild report group tags.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the
* existing values.
*
* These tags are available for use by Amazon Web Services services that support CodeBuild report group tags.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReportGroupRequest withTags(Tag... tags) {
if (this.tags == null) {
setTags(new java.util.ArrayList
* A list of tag key and value pairs associated with this report group.
*
* These tags are available for use by Amazon Web Services services that support CodeBuild report group tags.
*
* These tags are available for use by Amazon Web Services services that support CodeBuild report group tags.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReportGroupRequest withTags(java.util.Collection