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/codedeploy/CodeDeploy_EXPORTS.h>
  #include <aws/codedeploy/model/StopStatus.h>
  #include <aws/core/utils/memory/stl/AWSString.h>
  
  namespace Aws
  {
  template<typename RESULT_TYPE>
  class AmazonWebServiceResult;
  
  namespace Utils
  {
  namespace Json
  {
    class JsonValue;
  } // namespace Json
  } // namespace Utils
  namespace CodeDeploy
  {
  namespace Model
  {
    /**
     * <p>Represents the output of a stop deployment operation.</p>
     */
    class AWS_CODEDEPLOY_API StopDeploymentResult
    {
    public:
      StopDeploymentResult();
      StopDeploymentResult(const AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
      StopDeploymentResult& operator=(const AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
  
      /**
       * <p>The status of the stop deployment operation:</p> <ul> <li>Pending: The stop
       * operation is pending.</li> <li>Succeeded: The stop operation was
       * successful.</li> </ul>
       */
      inline const StopStatus& GetStatus() const{ return m_status; }
  
      /**
       * <p>The status of the stop deployment operation:</p> <ul> <li>Pending: The stop
       * operation is pending.</li> <li>Succeeded: The stop operation was
       * successful.</li> </ul>
       */
      inline void SetStatus(const StopStatus& value) { m_status = value; }
  
      /**
       * <p>The status of the stop deployment operation:</p> <ul> <li>Pending: The stop
       * operation is pending.</li> <li>Succeeded: The stop operation was
       * successful.</li> </ul>
       */
      inline void SetStatus(StopStatus&& value) { m_status = value; }
  
      /**
       * <p>The status of the stop deployment operation:</p> <ul> <li>Pending: The stop
       * operation is pending.</li> <li>Succeeded: The stop operation was
       * successful.</li> </ul>
       */
      inline StopDeploymentResult& WithStatus(const StopStatus& value) { SetStatus(value); return *this;}
  
      /**
       * <p>The status of the stop deployment operation:</p> <ul> <li>Pending: The stop
       * operation is pending.</li> <li>Succeeded: The stop operation was
       * successful.</li> </ul>
       */
      inline StopDeploymentResult& WithStatus(StopStatus&& value) { SetStatus(value); return *this;}
  
      /**
       * <p>An accompanying status message.</p>
       */
      inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
  
      /**
       * <p>An accompanying status message.</p>
       */
      inline void SetStatusMessage(const Aws::String& value) { m_statusMessage = value; }
  
      /**
       * <p>An accompanying status message.</p>
       */
      inline void SetStatusMessage(Aws::String&& value) { m_statusMessage = value; }
  
      /**
       * <p>An accompanying status message.</p>
       */
      inline void SetStatusMessage(const char* value) { m_statusMessage.assign(value); }
  
      /**
       * <p>An accompanying status message.</p>
       */
      inline StopDeploymentResult& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
  
      /**
       * <p>An accompanying status message.</p>
       */
      inline StopDeploymentResult& WithStatusMessage(Aws::String&& value) { SetStatusMessage(value); return *this;}
  
      /**
       * <p>An accompanying status message.</p>
       */
      inline StopDeploymentResult& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
  
    private:
      StopStatus m_status;
      Aws::String m_statusMessage;
    };
  
  } // namespace Model
  } // namespace CodeDeploy
  } // namespace Aws
  