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

com.amazonservices.mws.subscriptions.model.GetSubscriptionResponse Maven / Gradle / Ivy

The newest version!
/*******************************************************************************
 * Copyright 2009-2014 Amazon Services. 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.
 * You may obtain a copy of the License at: http://aws.amazon.com/apache2.0
 * 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.
 *******************************************************************************
 * Get Subscription Response
 * API Version: 2013-07-01
 * Library Version: 2014-09-30
 * Generated: Tue Sep 16 08:58:06 PDT 2014
 */
package com.amazonservices.mws.subscriptions.model;

import com.amazonservices.mws.client.AbstractMwsObject;
import com.amazonservices.mws.client.MwsReader;
import com.amazonservices.mws.client.MwsWriter;

/**
 * GetSubscriptionResponse complex type.
 *
 * XML schema:
 *
 * 
 * <complexType name="GetSubscriptionResponse">
 *    <complexContent>
 *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *          <sequence>
 *             <element name="GetSubscriptionResult" type="{http://mws.amazonservices.com/schema/Subscriptions/2013-07-01}GetSubscriptionResult" minOccurs="0"/>
 *             <element name="ResponseMetadata" type="{http://mws.amazonservices.com/schema/Subscriptions/2013-07-01}ResponseMetadata" minOccurs="0"/>
 *          </sequence>
 *       </restriction>
 *    </complexContent>
 * </complexType>
 * 
*/ public class GetSubscriptionResponse extends AbstractMwsObject implements MWSResponse { private GetSubscriptionResult getSubscriptionResult; private ResponseMetadata responseMetadata; private ResponseHeaderMetadata responseHeaderMetadata; /** * Get the value of GetSubscriptionResult. * * @return The value of GetSubscriptionResult. */ public GetSubscriptionResult getGetSubscriptionResult() { return getSubscriptionResult; } /** * Set the value of GetSubscriptionResult. * * @param getSubscriptionResult * The new value to set. */ public void setGetSubscriptionResult(GetSubscriptionResult getSubscriptionResult) { this.getSubscriptionResult = getSubscriptionResult; } /** * Check to see if GetSubscriptionResult is set. * * @return true if GetSubscriptionResult is set. */ public boolean isSetGetSubscriptionResult() { return getSubscriptionResult != null; } /** * Set the value of GetSubscriptionResult, return this. * * @param getSubscriptionResult * The new value to set. * * @return This instance. */ public GetSubscriptionResponse withGetSubscriptionResult(GetSubscriptionResult getSubscriptionResult) { this.getSubscriptionResult = getSubscriptionResult; return this; } /** * Get the value of ResponseMetadata. * * @return The value of ResponseMetadata. */ public ResponseMetadata getResponseMetadata() { return responseMetadata; } /** * Set the value of ResponseMetadata. * * @param responseMetadata * The new value to set. */ public void setResponseMetadata(ResponseMetadata responseMetadata) { this.responseMetadata = responseMetadata; } /** * Check to see if ResponseMetadata is set. * * @return true if ResponseMetadata is set. */ public boolean isSetResponseMetadata() { return responseMetadata != null; } /** * Set the value of ResponseMetadata, return this. * * @param responseMetadata * The new value to set. * * @return This instance. */ public GetSubscriptionResponse withResponseMetadata(ResponseMetadata responseMetadata) { this.responseMetadata = responseMetadata; return this; } /** * Get the value of ResponseHeaderMetadata. * * @return The value of ResponseHeaderMetadata. */ public ResponseHeaderMetadata getResponseHeaderMetadata() { return responseHeaderMetadata; } /** * Set the value of ResponseHeaderMetadata. * * @param responseHeaderMetadata * The new value to set. */ public void setResponseHeaderMetadata(ResponseHeaderMetadata responseHeaderMetadata) { this.responseHeaderMetadata = responseHeaderMetadata; } /** * Check to see if ResponseHeaderMetadata is set. * * @return true if ResponseHeaderMetadata is set. */ public boolean isSetResponseHeaderMetadata() { return responseHeaderMetadata != null; } /** * Set the value of ResponseHeaderMetadata, return this. * * @param responseHeaderMetadata * The new value to set. * * @return This instance. */ public GetSubscriptionResponse withResponseHeaderMetadata(ResponseHeaderMetadata responseHeaderMetadata) { this.responseHeaderMetadata = responseHeaderMetadata; return this; } /** * Read members from a MwsReader. * * @param r * The reader to read from. */ @Override public void readFragmentFrom(MwsReader r) { getSubscriptionResult = r.read("GetSubscriptionResult", GetSubscriptionResult.class); responseMetadata = r.read("ResponseMetadata", ResponseMetadata.class); } /** * Write members to a MwsWriter. * * @param w * The writer to write to. */ @Override public void writeFragmentTo(MwsWriter w) { w.write("GetSubscriptionResult", getSubscriptionResult); w.write("ResponseMetadata", responseMetadata); } /** * Write tag, xmlns and members to a MwsWriter. * * @param w * The Writer to write to. */ @Override public void writeTo(MwsWriter w) { w.write("http://mws.amazonservices.com/schema/Subscriptions/2013-07-01", "GetSubscriptionResponse",this); } /** Value constructor. */ public GetSubscriptionResponse(GetSubscriptionResult getSubscriptionResult,ResponseMetadata responseMetadata) { this.getSubscriptionResult = getSubscriptionResult; this.responseMetadata = responseMetadata; } /** Default constructor. */ public GetSubscriptionResponse() { super(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy