text: /*
  * Copyright 2010-2016 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.
  */
  #pragma once
  #include <aws/ec2/EC2_EXPORTS.h>
  #include <aws/core/utils/memory/stl/AWSStreamFwd.h>
  #include <aws/core/utils/memory/stl/AWSString.h>
  #include <aws/ec2/model/BatchState.h>
  
  namespace Aws
  {
  namespace Utils
  {
  namespace Xml
  {
    class XmlNode;
  } // namespace Xml
  } // namespace Utils
  namespace EC2
  {
  namespace Model
  {
  
    /**
     * <p>Describes a Spot fleet request that was successfully canceled.</p>
     */
    class AWS_EC2_API CancelSpotFleetRequestsSuccessItem
    {
    public:
      CancelSpotFleetRequestsSuccessItem();
      CancelSpotFleetRequestsSuccessItem(const Aws::Utils::Xml::XmlNode& xmlNode);
      CancelSpotFleetRequestsSuccessItem& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
  
      void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
      void OutputToStream(Aws::OStream& oStream, const char* location) const;
  
      /**
       * <p>The ID of the Spot fleet request.</p>
       */
      inline const Aws::String& GetSpotFleetRequestId() const{ return m_spotFleetRequestId; }
  
      /**
       * <p>The ID of the Spot fleet request.</p>
       */
      inline void SetSpotFleetRequestId(const Aws::String& value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId = value; }
  
      /**
       * <p>The ID of the Spot fleet request.</p>
       */
      inline void SetSpotFleetRequestId(Aws::String&& value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId = value; }
  
      /**
       * <p>The ID of the Spot fleet request.</p>
       */
      inline void SetSpotFleetRequestId(const char* value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId.assign(value); }
  
      /**
       * <p>The ID of the Spot fleet request.</p>
       */
      inline CancelSpotFleetRequestsSuccessItem& WithSpotFleetRequestId(const Aws::String& value) { SetSpotFleetRequestId(value); return *this;}
  
      /**
       * <p>The ID of the Spot fleet request.</p>
       */
      inline CancelSpotFleetRequestsSuccessItem& WithSpotFleetRequestId(Aws::String&& value) { SetSpotFleetRequestId(value); return *this;}
  
      /**
       * <p>The ID of the Spot fleet request.</p>
       */
      inline CancelSpotFleetRequestsSuccessItem& WithSpotFleetRequestId(const char* value) { SetSpotFleetRequestId(value); return *this;}
  
      /**
       * <p>The current state of the Spot fleet request.</p>
       */
      inline const BatchState& GetCurrentSpotFleetRequestState() const{ return m_currentSpotFleetRequestState; }
  
      /**
       * <p>The current state of the Spot fleet request.</p>
       */
      inline void SetCurrentSpotFleetRequestState(const BatchState& value) { m_currentSpotFleetRequestStateHasBeenSet = true; m_currentSpotFleetRequestState = value; }
  
      /**
       * <p>The current state of the Spot fleet request.</p>
       */
      inline void SetCurrentSpotFleetRequestState(BatchState&& value) { m_currentSpotFleetRequestStateHasBeenSet = true; m_currentSpotFleetRequestState = value; }
  
      /**
       * <p>The current state of the Spot fleet request.</p>
       */
      inline CancelSpotFleetRequestsSuccessItem& WithCurrentSpotFleetRequestState(const BatchState& value) { SetCurrentSpotFleetRequestState(value); return *this;}
  
      /**
       * <p>The current state of the Spot fleet request.</p>
       */
      inline CancelSpotFleetRequestsSuccessItem& WithCurrentSpotFleetRequestState(BatchState&& value) { SetCurrentSpotFleetRequestState(value); return *this;}
  
      /**
       * <p>The previous state of the Spot fleet request.</p>
       */
      inline const BatchState& GetPreviousSpotFleetRequestState() const{ return m_previousSpotFleetRequestState; }
  
      /**
       * <p>The previous state of the Spot fleet request.</p>
       */
      inline void SetPreviousSpotFleetRequestState(const BatchState& value) { m_previousSpotFleetRequestStateHasBeenSet = true; m_previousSpotFleetRequestState = value; }
  
      /**
       * <p>The previous state of the Spot fleet request.</p>
       */
      inline void SetPreviousSpotFleetRequestState(BatchState&& value) { m_previousSpotFleetRequestStateHasBeenSet = true; m_previousSpotFleetRequestState = value; }
  
      /**
       * <p>The previous state of the Spot fleet request.</p>
       */
      inline CancelSpotFleetRequestsSuccessItem& WithPreviousSpotFleetRequestState(const BatchState& value) { SetPreviousSpotFleetRequestState(value); return *this;}
  
      /**
       * <p>The previous state of the Spot fleet request.</p>
       */
      inline CancelSpotFleetRequestsSuccessItem& WithPreviousSpotFleetRequestState(BatchState&& value) { SetPreviousSpotFleetRequestState(value); return *this;}
  
    private:
      Aws::String m_spotFleetRequestId;
      bool m_spotFleetRequestIdHasBeenSet;
      BatchState m_currentSpotFleetRequestState;
      bool m_currentSpotFleetRequestStateHasBeenSet;
      BatchState m_previousSpotFleetRequestState;
      bool m_previousSpotFleetRequestStateHasBeenSet;
    };
  
  } // namespace Model
  } // namespace EC2
  } // namespace Aws
  