Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2014 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.ec2.model;
 
 
 import  com.amazonaws.services.ec2.model.transform.DescribeNetworkInterfaceAttributeRequestMarshaller;

Container for the parameters to the DescribeNetworkInterfaceAttribute operation.

Describes a network interface attribute. You can specify only one attribute at a time.

See also:
com.amazonaws.services.ec2.AmazonEC2.describeNetworkInterfaceAttribute(DescribeNetworkInterfaceAttributeRequest)
 
 public class DescribeNetworkInterfaceAttributeRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<DescribeNetworkInterfaceAttributeRequest> {

    
The ID of the network interface.
 
     private String networkInterfaceId;

    
The description attribute.
 
     private String description;

    
The sourceDestCheck attribute.
 
     private String sourceDestCheck;

    
The groupSet attribute.
 
     private String groups;

    
The attachment attribute.
 
     private String attachment;

    
The ID of the network interface.

Returns:
The ID of the network interface.
 
     public String getNetworkInterfaceId() {
         return ;
     }
    
    
The ID of the network interface.

Parameters:
networkInterfaceId The ID of the network interface.
 
     public void setNetworkInterfaceId(String networkInterfaceId) {
         this. = networkInterfaceId;
     }
    
    
The ID of the network interface.

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

Parameters:
networkInterfaceId The ID of the network interface.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         this. = networkInterfaceId;
         return this;
     }

    
The description attribute.

Returns:
The description attribute.
 
     public String getDescription() {
         return ;
     }
    
    
The description attribute.

Parameters:
description The description attribute.
    public void setDescription(String description) {
        this. = description;
    }
    
    
The description attribute.

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

Parameters:
description The description attribute.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = description;
        return this;
    }

    
The sourceDestCheck attribute.

Returns:
The sourceDestCheck attribute.
    public String getSourceDestCheck() {
        return ;
    }
    
    
The sourceDestCheck attribute.

Parameters:
sourceDestCheck The sourceDestCheck attribute.
    public void setSourceDestCheck(String sourceDestCheck) {
        this. = sourceDestCheck;
    }
    
    
The sourceDestCheck attribute.

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

Parameters:
sourceDestCheck The sourceDestCheck attribute.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = sourceDestCheck;
        return this;
    }

    
The groupSet attribute.

Returns:
The groupSet attribute.
    public String getGroups() {
        return ;
    }
    
    
The groupSet attribute.

Parameters:
groups The groupSet attribute.
    public void setGroups(String groups) {
        this. = groups;
    }
    
    
The groupSet attribute.

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

Parameters:
groups The groupSet attribute.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = groups;
        return this;
    }

    
The attachment attribute.

Returns:
The attachment attribute.
    public String getAttachment() {
        return ;
    }
    
    
The attachment attribute.

Parameters:
attachment The attachment attribute.
    public void setAttachment(String attachment) {
        this. = attachment;
    }
    
    
The attachment attribute.

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

Parameters:
attachment The attachment attribute.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = attachment;
        return this;
    }

    
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.
    @Override
        Request<DescribeNetworkInterfaceAttributeRequestrequest = new DescribeNetworkInterfaceAttributeRequestMarshaller().marshall(this);
        request.addParameter("DryRun", Boolean.toString(true));
        return request;
    }
    
    
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 (getNetworkInterfaceId() != nullsb.append("NetworkInterfaceId: " + getNetworkInterfaceId() + ",");
        if (getDescription() != nullsb.append("Description: " + getDescription() + ",");
        if (getSourceDestCheck() != nullsb.append("SourceDestCheck: " + getSourceDestCheck() + ",");
        if (getGroups() != nullsb.append("Groups: " + getGroups() + ",");
        if (getAttachment() != nullsb.append("Attachment: " + getAttachment() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getNetworkInterfaceId() == null) ? 0 : getNetworkInterfaceId().hashCode()); 
        hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); 
        hashCode = prime * hashCode + ((getSourceDestCheck() == null) ? 0 : getSourceDestCheck().hashCode()); 
        hashCode = prime * hashCode + ((getGroups() == null) ? 0 : getGroups().hashCode()); 
        hashCode = prime * hashCode + ((getAttachment() == null) ? 0 : getAttachment().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof DescribeNetworkInterfaceAttributeRequest == falsereturn false;
        
        if (other.getNetworkInterfaceId() == null ^ this.getNetworkInterfaceId() == nullreturn false;
        if (other.getNetworkInterfaceId() != null && other.getNetworkInterfaceId().equals(this.getNetworkInterfaceId()) == falsereturn false
        if (other.getDescription() == null ^ this.getDescription() == nullreturn false;
        if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == falsereturn false
        if (other.getSourceDestCheck() == null ^ this.getSourceDestCheck() == nullreturn false;
        if (other.getSourceDestCheck() != null && other.getSourceDestCheck().equals(this.getSourceDestCheck()) == falsereturn false
        if (other.getGroups() == null ^ this.getGroups() == nullreturn false;
        if (other.getGroups() != null && other.getGroups().equals(this.getGroups()) == falsereturn false
        if (other.getAttachment() == null ^ this.getAttachment() == nullreturn false;
        if (other.getAttachment() != null && other.getAttachment().equals(this.getAttachment()) == falsereturn false
        return true;
    }
    
}
    
New to GrepCode? Check out our FAQ X