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.rds.model;
 
 
Container for the parameters to the DescribeOrderableDBInstanceOptions operation.

Returns a list of orderable DB instance options for the specified engine.

 
The name of the engine to retrieve DB instance options for.
 
     private String engine;

    
The engine version filter value. Specify this parameter to show only the available offerings matching the specified engine version.
 
     private String engineVersion;

    
The DB instance class filter value. Specify this parameter to show only the available offerings matching the specified DB instance class.
 
     private String dBInstanceClass;

    
The license model filter value. Specify this parameter to show only the available offerings matching the specified license model.
 
     private String licenseModel;

    
The VPC filter value. Specify this parameter to show only the available VPC or non-VPC offerings.
 
     private Boolean vpc;

    
This parameter is not currently supported.
 
The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

 
     private Integer maxRecords;

    
An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .
 
     private String marker;

    
The name of the engine to retrieve DB instance options for.

Returns:
The name of the engine to retrieve DB instance options for.
 
     public String getEngine() {
         return ;
     }
    
    
The name of the engine to retrieve DB instance options for.

Parameters:
engine The name of the engine to retrieve DB instance options for.
 
     public void setEngine(String engine) {
         this. = engine;
     }
    
    
The name of the engine to retrieve DB instance options for.

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

Parameters:
engine The name of the engine to retrieve DB instance options for.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = engine;
        return this;
    }

    
The engine version filter value. Specify this parameter to show only the available offerings matching the specified engine version.

Returns:
The engine version filter value. Specify this parameter to show only the available offerings matching the specified engine version.
    public String getEngineVersion() {
        return ;
    }
    
    
The engine version filter value. Specify this parameter to show only the available offerings matching the specified engine version.

Parameters:
engineVersion The engine version filter value. Specify this parameter to show only the available offerings matching the specified engine version.
    public void setEngineVersion(String engineVersion) {
        this. = engineVersion;
    }
    
    
The engine version filter value. Specify this parameter to show only the available offerings matching the specified engine version.

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

Parameters:
engineVersion The engine version filter value. Specify this parameter to show only the available offerings matching the specified engine version.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = engineVersion;
        return this;
    }

    
The DB instance class filter value. Specify this parameter to show only the available offerings matching the specified DB instance class.

Returns:
The DB instance class filter value. Specify this parameter to show only the available offerings matching the specified DB instance class.
    public String getDBInstanceClass() {
        return ;
    }
    
    
The DB instance class filter value. Specify this parameter to show only the available offerings matching the specified DB instance class.

Parameters:
dBInstanceClass The DB instance class filter value. Specify this parameter to show only the available offerings matching the specified DB instance class.
    public void setDBInstanceClass(String dBInstanceClass) {
        this. = dBInstanceClass;
    }
    
    
The DB instance class filter value. Specify this parameter to show only the available offerings matching the specified DB instance class.

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

Parameters:
dBInstanceClass The DB instance class filter value. Specify this parameter to show only the available offerings matching the specified DB instance class.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = dBInstanceClass;
        return this;
    }

    
The license model filter value. Specify this parameter to show only the available offerings matching the specified license model.

Returns:
The license model filter value. Specify this parameter to show only the available offerings matching the specified license model.
    public String getLicenseModel() {
        return ;
    }
    
    
The license model filter value. Specify this parameter to show only the available offerings matching the specified license model.

Parameters:
licenseModel The license model filter value. Specify this parameter to show only the available offerings matching the specified license model.
    public void setLicenseModel(String licenseModel) {
        this. = licenseModel;
    }
    
    
The license model filter value. Specify this parameter to show only the available offerings matching the specified license model.

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

Parameters:
licenseModel The license model filter value. Specify this parameter to show only the available offerings matching the specified license model.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = licenseModel;
        return this;
    }

    
The VPC filter value. Specify this parameter to show only the available VPC or non-VPC offerings.

Returns:
The VPC filter value. Specify this parameter to show only the available VPC or non-VPC offerings.
    public Boolean isVpc() {
        return ;
    }
    
    
The VPC filter value. Specify this parameter to show only the available VPC or non-VPC offerings.

Parameters:
vpc The VPC filter value. Specify this parameter to show only the available VPC or non-VPC offerings.
    public void setVpc(Boolean vpc) {
        this. = vpc;
    }
    
    
The VPC filter value. Specify this parameter to show only the available VPC or non-VPC offerings.

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

Parameters:
vpc The VPC filter value. Specify this parameter to show only the available VPC or non-VPC offerings.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = vpc;
        return this;
    }

    
The VPC filter value. Specify this parameter to show only the available VPC or non-VPC offerings.

Returns:
The VPC filter value. Specify this parameter to show only the available VPC or non-VPC offerings.
    public Boolean getVpc() {
        return ;
    }

    
This parameter is not currently supported.

Returns:
This parameter is not currently supported.
    public java.util.List<FiltergetFilters() {
        if ( == null) {
               = new com.amazonaws.internal.ListWithAutoConstructFlag<Filter>();
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
This parameter is not currently supported.

Parameters:
filters This parameter is not currently supported.
    public void setFilters(java.util.Collection<Filterfilters) {
        if (filters == null) {
            this. = null;
            return;
        }
        filtersCopy.addAll(filters);
        this. = filtersCopy;
    }
    
    
This parameter is not currently supported.

NOTE: This method appends the values to the existing list (if any). Use setFilters(java.util.Collection) or withFilters(java.util.Collection) if you want to override the existing values.

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

Parameters:
filters This parameter is not currently supported.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (getFilters() == nullsetFilters(new java.util.ArrayList<Filter>(filters.length));
        for (Filter value : filters) {
            getFilters().add(value);
        }
        return this;
    }
    
    
This parameter is not currently supported.

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

Parameters:
filters This parameter is not currently supported.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (filters == null) {
            this. = null;
        } else {
            filtersCopy.addAll(filters);
            this. = filtersCopy;
        }
        return this;
    }

    
The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

Returns:
The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

    public Integer getMaxRecords() {
        return ;
    }
    
    
The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

Parameters:
maxRecords The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

    public void setMaxRecords(Integer maxRecords) {
        this. = maxRecords;
    }
    
    
The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

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

Parameters:
maxRecords The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

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

    
An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

Returns:
An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .
    public String getMarker() {
        return ;
    }
    
    
An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

Parameters:
marker An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .
    public void setMarker(String marker) {
        this. = marker;
    }
    
    
An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

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

Parameters:
marker An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = marker;
        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 (getEngine() != nullsb.append("Engine: " + getEngine() + ",");
        if (getEngineVersion() != nullsb.append("EngineVersion: " + getEngineVersion() + ",");
        if (getDBInstanceClass() != nullsb.append("DBInstanceClass: " + getDBInstanceClass() + ",");
        if (getLicenseModel() != nullsb.append("LicenseModel: " + getLicenseModel() + ",");
        if (isVpc() != nullsb.append("Vpc: " + isVpc() + ",");
        if (getFilters() != nullsb.append("Filters: " + getFilters() + ",");
        if (getMaxRecords() != nullsb.append("MaxRecords: " + getMaxRecords() + ",");
        if (getMarker() != nullsb.append("Marker: " + getMarker() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getEngine() == null) ? 0 : getEngine().hashCode()); 
        hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode()); 
        hashCode = prime * hashCode + ((getDBInstanceClass() == null) ? 0 : getDBInstanceClass().hashCode()); 
        hashCode = prime * hashCode + ((getLicenseModel() == null) ? 0 : getLicenseModel().hashCode()); 
        hashCode = prime * hashCode + ((isVpc() == null) ? 0 : isVpc().hashCode()); 
        hashCode = prime * hashCode + ((getFilters() == null) ? 0 : getFilters().hashCode()); 
        hashCode = prime * hashCode + ((getMaxRecords() == null) ? 0 : getMaxRecords().hashCode()); 
        hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof DescribeOrderableDBInstanceOptionsRequest == falsereturn false;
        
        if (other.getEngine() == null ^ this.getEngine() == nullreturn false;
        if (other.getEngine() != null && other.getEngine().equals(this.getEngine()) == falsereturn false
        if (other.getEngineVersion() == null ^ this.getEngineVersion() == nullreturn false;
        if (other.getEngineVersion() != null && other.getEngineVersion().equals(this.getEngineVersion()) == falsereturn false
        if (other.getDBInstanceClass() == null ^ this.getDBInstanceClass() == nullreturn false;
        if (other.getDBInstanceClass() != null && other.getDBInstanceClass().equals(this.getDBInstanceClass()) == falsereturn false
        if (other.getLicenseModel() == null ^ this.getLicenseModel() == nullreturn false;
        if (other.getLicenseModel() != null && other.getLicenseModel().equals(this.getLicenseModel()) == falsereturn false
        if (other.isVpc() == null ^ this.isVpc() == nullreturn false;
        if (other.isVpc() != null && other.isVpc().equals(this.isVpc()) == falsereturn false
        if (other.getFilters() == null ^ this.getFilters() == nullreturn false;
        if (other.getFilters() != null && other.getFilters().equals(this.getFilters()) == falsereturn false
        if (other.getMaxRecords() == null ^ this.getMaxRecords() == nullreturn false;
        if (other.getMaxRecords() != null && other.getMaxRecords().equals(this.getMaxRecords()) == falsereturn false
        if (other.getMarker() == null ^ this.getMarker() == nullreturn false;
        if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == falsereturn false
        return true;
    }
    
    @Override
        
            return (DescribeOrderableDBInstanceOptionsRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X