/* * 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.kinesis.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Output parameter of the GetRecords API. The existing child shard of the current shard. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ChildShard implements Serializable, Cloneable, StructuredPojo { /** ** The shard ID of the existing child shard of the current shard. *
*/ private String shardId; /** ** The current shard that is the parent of the existing child shard. *
*/ private com.amazonaws.internal.SdkInternalList* The shard ID of the existing child shard of the current shard. *
* * @param shardId * The shard ID of the existing child shard of the current shard. */ public void setShardId(String shardId) { this.shardId = shardId; } /** ** The shard ID of the existing child shard of the current shard. *
* * @return The shard ID of the existing child shard of the current shard. */ public String getShardId() { return this.shardId; } /** ** The shard ID of the existing child shard of the current shard. *
* * @param shardId * The shard ID of the existing child shard of the current shard. * @return Returns a reference to this object so that method calls can be chained together. */ public ChildShard withShardId(String shardId) { setShardId(shardId); return this; } /** ** The current shard that is the parent of the existing child shard. *
* * @return The current shard that is the parent of the existing child shard. */ public java.util.List* The current shard that is the parent of the existing child shard. *
* * @param parentShards * The current shard that is the parent of the existing child shard. */ public void setParentShards(java.util.Collection* The current shard that is the parent of the existing child shard. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setParentShards(java.util.Collection)} or {@link #withParentShards(java.util.Collection)} if you want to * override the existing values. *
* * @param parentShards * The current shard that is the parent of the existing child shard. * @return Returns a reference to this object so that method calls can be chained together. */ public ChildShard withParentShards(String... parentShards) { if (this.parentShards == null) { setParentShards(new com.amazonaws.internal.SdkInternalList* The current shard that is the parent of the existing child shard. *
* * @param parentShards * The current shard that is the parent of the existing child shard. * @return Returns a reference to this object so that method calls can be chained together. */ public ChildShard withParentShards(java.util.Collection