/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace IoTFleetWise { namespace Model { class UpdateCampaignResult { public: AWS_IOTFLEETWISE_API UpdateCampaignResult(); AWS_IOTFLEETWISE_API UpdateCampaignResult(const Aws::AmazonWebServiceResult& result); AWS_IOTFLEETWISE_API UpdateCampaignResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of the campaign.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the campaign.

*/ inline void SetArn(const Aws::String& value) { m_arn = value; } /** *

The Amazon Resource Name (ARN) of the campaign.

*/ inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the campaign.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the campaign.

*/ inline UpdateCampaignResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the campaign.

*/ inline UpdateCampaignResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the campaign.

*/ inline UpdateCampaignResult& WithArn(const char* value) { SetArn(value); return *this;} /** *

The name of the updated campaign.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the updated campaign.

*/ inline void SetName(const Aws::String& value) { m_name = value; } /** *

The name of the updated campaign.

*/ inline void SetName(Aws::String&& value) { m_name = std::move(value); } /** *

The name of the updated campaign.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The name of the updated campaign.

*/ inline UpdateCampaignResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the updated campaign.

*/ inline UpdateCampaignResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the updated campaign.

*/ inline UpdateCampaignResult& WithName(const char* value) { SetName(value); return *this;} /** *

The state of a campaign. The status can be one of:

  • * CREATING - Amazon Web Services IoT FleetWise is processing your * request to create the campaign.

  • * WAITING_FOR_APPROVAL - After a campaign is created, it enters the * WAITING_FOR_APPROVAL state. To allow Amazon Web Services IoT * FleetWise to deploy the campaign to the target vehicle or fleet, use the API * operation to approve the campaign.

  • RUNNING - * The campaign is active.

  • SUSPENDED - The * campaign is suspended. To resume the campaign, use the API operation.

  • *
*/ inline const CampaignStatus& GetStatus() const{ return m_status; } /** *

The state of a campaign. The status can be one of:

  • * CREATING - Amazon Web Services IoT FleetWise is processing your * request to create the campaign.

  • * WAITING_FOR_APPROVAL - After a campaign is created, it enters the * WAITING_FOR_APPROVAL state. To allow Amazon Web Services IoT * FleetWise to deploy the campaign to the target vehicle or fleet, use the API * operation to approve the campaign.

  • RUNNING - * The campaign is active.

  • SUSPENDED - The * campaign is suspended. To resume the campaign, use the API operation.

  • *
*/ inline void SetStatus(const CampaignStatus& value) { m_status = value; } /** *

The state of a campaign. The status can be one of:

  • * CREATING - Amazon Web Services IoT FleetWise is processing your * request to create the campaign.

  • * WAITING_FOR_APPROVAL - After a campaign is created, it enters the * WAITING_FOR_APPROVAL state. To allow Amazon Web Services IoT * FleetWise to deploy the campaign to the target vehicle or fleet, use the API * operation to approve the campaign.

  • RUNNING - * The campaign is active.

  • SUSPENDED - The * campaign is suspended. To resume the campaign, use the API operation.

  • *
*/ inline void SetStatus(CampaignStatus&& value) { m_status = std::move(value); } /** *

The state of a campaign. The status can be one of:

  • * CREATING - Amazon Web Services IoT FleetWise is processing your * request to create the campaign.

  • * WAITING_FOR_APPROVAL - After a campaign is created, it enters the * WAITING_FOR_APPROVAL state. To allow Amazon Web Services IoT * FleetWise to deploy the campaign to the target vehicle or fleet, use the API * operation to approve the campaign.

  • RUNNING - * The campaign is active.

  • SUSPENDED - The * campaign is suspended. To resume the campaign, use the API operation.

  • *
*/ inline UpdateCampaignResult& WithStatus(const CampaignStatus& value) { SetStatus(value); return *this;} /** *

The state of a campaign. The status can be one of:

  • * CREATING - Amazon Web Services IoT FleetWise is processing your * request to create the campaign.

  • * WAITING_FOR_APPROVAL - After a campaign is created, it enters the * WAITING_FOR_APPROVAL state. To allow Amazon Web Services IoT * FleetWise to deploy the campaign to the target vehicle or fleet, use the API * operation to approve the campaign.

  • RUNNING - * The campaign is active.

  • SUSPENDED - The * campaign is suspended. To resume the campaign, use the API operation.

  • *
*/ inline UpdateCampaignResult& WithStatus(CampaignStatus&& value) { SetStatus(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline UpdateCampaignResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateCampaignResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateCampaignResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_arn; Aws::String m_name; CampaignStatus m_status; Aws::String m_requestId; }; } // namespace Model } // namespace IoTFleetWise } // namespace Aws