/* * 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.xray.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about a segment annotation. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ValueWithServiceIds implements Serializable, Cloneable, StructuredPojo { /** ** Values of the annotation. *
*/ private AnnotationValue annotationValue; /** ** Services to which the annotation applies. *
*/ private java.util.List* Values of the annotation. *
* * @param annotationValue * Values of the annotation. */ public void setAnnotationValue(AnnotationValue annotationValue) { this.annotationValue = annotationValue; } /** ** Values of the annotation. *
* * @return Values of the annotation. */ public AnnotationValue getAnnotationValue() { return this.annotationValue; } /** ** Values of the annotation. *
* * @param annotationValue * Values of the annotation. * @return Returns a reference to this object so that method calls can be chained together. */ public ValueWithServiceIds withAnnotationValue(AnnotationValue annotationValue) { setAnnotationValue(annotationValue); return this; } /** ** Services to which the annotation applies. *
* * @return Services to which the annotation applies. */ public java.util.List* Services to which the annotation applies. *
* * @param serviceIds * Services to which the annotation applies. */ public void setServiceIds(java.util.Collection* Services to which the annotation applies. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setServiceIds(java.util.Collection)} or {@link #withServiceIds(java.util.Collection)} if you want to * override the existing values. *
* * @param serviceIds * Services to which the annotation applies. * @return Returns a reference to this object so that method calls can be chained together. */ public ValueWithServiceIds withServiceIds(ServiceId... serviceIds) { if (this.serviceIds == null) { setServiceIds(new java.util.ArrayList* Services to which the annotation applies. *
* * @param serviceIds * Services to which the annotation applies. * @return Returns a reference to this object so that method calls can be chained together. */ public ValueWithServiceIds withServiceIds(java.util.Collection