Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010 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;

The SpotDatafeedSubscriptionType data type.

 
 public class SpotDatafeedSubscription {

    
Specifies the AWS account ID of the account.
 
     private String ownerId;

    
Specifies the Amazon S3 bucket where the Spot Instance data feed is located.
 
     private String bucket;

    
Contains the prefix that is prepended to data feed files.
 
     private String prefix;

    
Specifies the state of the Spot Instance request.
 
     private String state;

    
Specifies a fault code for the Spot Instance request, if present.
 
     private SpotInstanceStateFault fault;

    
Specifies the AWS account ID of the account.

Returns:
Specifies the AWS account ID of the account.
 
     public String getOwnerId() {
         return ;
     }
    
    
Specifies the AWS account ID of the account.

Parameters:
ownerId Specifies the AWS account ID of the account.
 
     public void setOwnerId(String ownerId) {
         this. = ownerId;
     }
    
    
Specifies the AWS account ID of the account.

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

Parameters:
ownerId Specifies the AWS account ID of the account.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public SpotDatafeedSubscription withOwnerId(String ownerId) {
         this. = ownerId;
         return this;
     }
    
    
    
Specifies the Amazon S3 bucket where the Spot Instance data feed is located.

Returns:
Specifies the Amazon S3 bucket where the Spot Instance data feed is located.
 
     public String getBucket() {
         return ;
     }
    
    
Specifies the Amazon S3 bucket where the Spot Instance data feed is located.

Parameters:
bucket Specifies the Amazon S3 bucket where the Spot Instance data feed is located.
    public void setBucket(String bucket) {
        this. = bucket;
    }
    
    
Specifies the Amazon S3 bucket where the Spot Instance data feed is located.

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

Parameters:
bucket Specifies the Amazon S3 bucket where the Spot Instance data feed is located.
Returns:
A reference to this updated object so that method calls can be chained together.
    public SpotDatafeedSubscription withBucket(String bucket) {
        this. = bucket;
        return this;
    }
    
    
    
Contains the prefix that is prepended to data feed files.

Returns:
Contains the prefix that is prepended to data feed files.
    public String getPrefix() {
        return ;
    }
    
    
Contains the prefix that is prepended to data feed files.

Parameters:
prefix Contains the prefix that is prepended to data feed files.
    public void setPrefix(String prefix) {
        this. = prefix;
    }
    
    
Contains the prefix that is prepended to data feed files.

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

Parameters:
prefix Contains the prefix that is prepended to data feed files.
Returns:
A reference to this updated object so that method calls can be chained together.
    public SpotDatafeedSubscription withPrefix(String prefix) {
        this. = prefix;
        return this;
    }
    
    
    
Specifies the state of the Spot Instance request.

Returns:
Specifies the state of the Spot Instance request.
    public String getState() {
        return ;
    }
    
    
Specifies the state of the Spot Instance request.

Parameters:
state Specifies the state of the Spot Instance request.
    public void setState(String state) {
        this. = state;
    }
    
    
Specifies the state of the Spot Instance request.

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

Parameters:
state Specifies the state of the Spot Instance request.
Returns:
A reference to this updated object so that method calls can be chained together.
    public SpotDatafeedSubscription withState(String state) {
        this. = state;
        return this;
    }
    
    
    
Specifies a fault code for the Spot Instance request, if present.

Returns:
Specifies a fault code for the Spot Instance request, if present.
    public SpotInstanceStateFault getFault() {
        return ;
    }
    
    
Specifies a fault code for the Spot Instance request, if present.

Parameters:
fault Specifies a fault code for the Spot Instance request, if present.
    public void setFault(SpotInstanceStateFault fault) {
        this. = fault;
    }
    
    
Specifies a fault code for the Spot Instance request, if present.

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

Parameters:
fault Specifies a fault code for the Spot Instance request, if present.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = fault;
        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("{");
        sb.append("OwnerId: " +  + ", ");
        sb.append("Bucket: " +  + ", ");
        sb.append("Prefix: " +  + ", ");
        sb.append("State: " +  + ", ");
        sb.append("Fault: " +  + ", ");
        sb.append("}");
        return sb.toString();
    }
    
}
    
New to GrepCode? Check out our FAQ X