All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.kinesis.model.MergeShardsRequest Maven / Gradle / Ivy

/*
 * Copyright 2014-2019 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.AmazonWebServiceRequest;

/**
 * 

* Represents the input for MergeShards. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class MergeShardsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The name of the stream for the merge. *

*/ private String streamName; /** *

* The shard ID of the shard to combine with the adjacent shard for the merge. *

*/ private String shardToMerge; /** *

* The shard ID of the adjacent shard for the merge. *

*/ private String adjacentShardToMerge; /** *

* The name of the stream for the merge. *

* * @param streamName * The name of the stream for the merge. */ public void setStreamName(String streamName) { this.streamName = streamName; } /** *

* The name of the stream for the merge. *

* * @return The name of the stream for the merge. */ public String getStreamName() { return this.streamName; } /** *

* The name of the stream for the merge. *

* * @param streamName * The name of the stream for the merge. * @return Returns a reference to this object so that method calls can be chained together. */ public MergeShardsRequest withStreamName(String streamName) { setStreamName(streamName); return this; } /** *

* The shard ID of the shard to combine with the adjacent shard for the merge. *

* * @param shardToMerge * The shard ID of the shard to combine with the adjacent shard for the merge. */ public void setShardToMerge(String shardToMerge) { this.shardToMerge = shardToMerge; } /** *

* The shard ID of the shard to combine with the adjacent shard for the merge. *

* * @return The shard ID of the shard to combine with the adjacent shard for the merge. */ public String getShardToMerge() { return this.shardToMerge; } /** *

* The shard ID of the shard to combine with the adjacent shard for the merge. *

* * @param shardToMerge * The shard ID of the shard to combine with the adjacent shard for the merge. * @return Returns a reference to this object so that method calls can be chained together. */ public MergeShardsRequest withShardToMerge(String shardToMerge) { setShardToMerge(shardToMerge); return this; } /** *

* The shard ID of the adjacent shard for the merge. *

* * @param adjacentShardToMerge * The shard ID of the adjacent shard for the merge. */ public void setAdjacentShardToMerge(String adjacentShardToMerge) { this.adjacentShardToMerge = adjacentShardToMerge; } /** *

* The shard ID of the adjacent shard for the merge. *

* * @return The shard ID of the adjacent shard for the merge. */ public String getAdjacentShardToMerge() { return this.adjacentShardToMerge; } /** *

* The shard ID of the adjacent shard for the merge. *

* * @param adjacentShardToMerge * The shard ID of the adjacent shard for the merge. * @return Returns a reference to this object so that method calls can be chained together. */ public MergeShardsRequest withAdjacentShardToMerge(String adjacentShardToMerge) { setAdjacentShardToMerge(adjacentShardToMerge); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getStreamName() != null) sb.append("StreamName: ").append(getStreamName()).append(","); if (getShardToMerge() != null) sb.append("ShardToMerge: ").append(getShardToMerge()).append(","); if (getAdjacentShardToMerge() != null) sb.append("AdjacentShardToMerge: ").append(getAdjacentShardToMerge()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof MergeShardsRequest == false) return false; MergeShardsRequest other = (MergeShardsRequest) obj; if (other.getStreamName() == null ^ this.getStreamName() == null) return false; if (other.getStreamName() != null && other.getStreamName().equals(this.getStreamName()) == false) return false; if (other.getShardToMerge() == null ^ this.getShardToMerge() == null) return false; if (other.getShardToMerge() != null && other.getShardToMerge().equals(this.getShardToMerge()) == false) return false; if (other.getAdjacentShardToMerge() == null ^ this.getAdjacentShardToMerge() == null) return false; if (other.getAdjacentShardToMerge() != null && other.getAdjacentShardToMerge().equals(this.getAdjacentShardToMerge()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStreamName() == null) ? 0 : getStreamName().hashCode()); hashCode = prime * hashCode + ((getShardToMerge() == null) ? 0 : getShardToMerge().hashCode()); hashCode = prime * hashCode + ((getAdjacentShardToMerge() == null) ? 0 : getAdjacentShardToMerge().hashCode()); return hashCode; } @Override public MergeShardsRequest clone() { return (MergeShardsRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy