Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 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;
 
 
Container for the parameters to the ListTagsForStream operation.

Lists the tags for the specified Amazon Kinesis stream.

 
 public class ListTagsForStreamRequest extends AmazonWebServiceRequest implements SerializableCloneable {

    
The name of the stream.

Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+

 
     private String streamName;

    
The key to use as the starting point for the list of tags. If this parameter is set, ListTagsForStream gets all tags that occur after ExclusiveStartTagKey.

Constraints:
Length: 1 - 128

 
     private String exclusiveStartTagKey;

    
The number of tags to return. If this number is less than the total number of tags associated with the stream, HasMoreTags is set to true. To list additional tags, set ExclusiveStartTagKey to the last key in the response.

Constraints:
Range: 1 - 10

 
     private Integer limit;

    
The name of the stream.

Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+

Returns:
The name of the stream.
 
     public String getStreamName() {
         return ;
     }
    
    
The name of the stream.

Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+

Parameters:
streamName The name of the stream.
 
     public void setStreamName(String streamName) {
         this. = streamName;
     }
    
    
The name of the stream.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+

Parameters:
streamName The name of the stream.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ListTagsForStreamRequest withStreamName(String streamName) {
        this. = streamName;
        return this;
    }

    
The key to use as the starting point for the list of tags. If this parameter is set, ListTagsForStream gets all tags that occur after ExclusiveStartTagKey.

Constraints:
Length: 1 - 128

Returns:
The key to use as the starting point for the list of tags. If this parameter is set, ListTagsForStream gets all tags that occur after ExclusiveStartTagKey.
    public String getExclusiveStartTagKey() {
        return ;
    }
    
    
The key to use as the starting point for the list of tags. If this parameter is set, ListTagsForStream gets all tags that occur after ExclusiveStartTagKey.

Constraints:
Length: 1 - 128

Parameters:
exclusiveStartTagKey The key to use as the starting point for the list of tags. If this parameter is set, ListTagsForStream gets all tags that occur after ExclusiveStartTagKey.
    public void setExclusiveStartTagKey(String exclusiveStartTagKey) {
        this. = exclusiveStartTagKey;
    }
    
    
The key to use as the starting point for the list of tags. If this parameter is set, ListTagsForStream gets all tags that occur after ExclusiveStartTagKey.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 128

Parameters:
exclusiveStartTagKey The key to use as the starting point for the list of tags. If this parameter is set, ListTagsForStream gets all tags that occur after ExclusiveStartTagKey.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ListTagsForStreamRequest withExclusiveStartTagKey(String exclusiveStartTagKey) {
        this. = exclusiveStartTagKey;
        return this;
    }

    
The number of tags to return. If this number is less than the total number of tags associated with the stream, HasMoreTags is set to true. To list additional tags, set ExclusiveStartTagKey to the last key in the response.

Constraints:
Range: 1 - 10

Returns:
The number of tags to return. If this number is less than the total number of tags associated with the stream, HasMoreTags is set to true. To list additional tags, set ExclusiveStartTagKey to the last key in the response.
    public Integer getLimit() {
        return ;
    }
    
    
The number of tags to return. If this number is less than the total number of tags associated with the stream, HasMoreTags is set to true. To list additional tags, set ExclusiveStartTagKey to the last key in the response.

Constraints:
Range: 1 - 10

Parameters:
limit The number of tags to return. If this number is less than the total number of tags associated with the stream, HasMoreTags is set to true. To list additional tags, set ExclusiveStartTagKey to the last key in the response.
    public void setLimit(Integer limit) {
        this. = limit;
    }
    
    
The number of tags to return. If this number is less than the total number of tags associated with the stream, HasMoreTags is set to true. To list additional tags, set ExclusiveStartTagKey to the last key in the response.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Range: 1 - 10

Parameters:
limit The number of tags to return. If this number is less than the total number of tags associated with the stream, HasMoreTags is set to true. To list additional tags, set ExclusiveStartTagKey to the last key in the response.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ListTagsForStreamRequest withLimit(Integer limit) {
        this. = limit;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getStreamName() != nullsb.append("StreamName: " + getStreamName() + ",");
        if (getExclusiveStartTagKey() != nullsb.append("ExclusiveStartTagKey: " + getExclusiveStartTagKey() + ",");
        if (getLimit() != nullsb.append("Limit: " + getLimit() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getStreamName() == null) ? 0 : getStreamName().hashCode()); 
        hashCode = prime * hashCode + ((getExclusiveStartTagKey() == null) ? 0 : getExclusiveStartTagKey().hashCode()); 
        hashCode = prime * hashCode + ((getLimit() == null) ? 0 : getLimit().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof ListTagsForStreamRequest == falsereturn false;
        ListTagsForStreamRequest other = (ListTagsForStreamRequest)obj;
        
        if (other.getStreamName() == null ^ this.getStreamName() == nullreturn false;
        if (other.getStreamName() != null && other.getStreamName().equals(this.getStreamName()) == falsereturn false
        if (other.getExclusiveStartTagKey() == null ^ this.getExclusiveStartTagKey() == nullreturn false;
        if (other.getExclusiveStartTagKey() != null && other.getExclusiveStartTagKey().equals(this.getExclusiveStartTagKey()) == falsereturn false
        if (other.getLimit() == null ^ this.getLimit() == nullreturn false;
        if (other.getLimit() != null && other.getLimit().equals(this.getLimit()) == falsereturn false
        return true;
    }
    
    @Override
    public ListTagsForStreamRequest clone() {
        
            return (ListTagsForStreamRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X