/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace LicenseManagerLinuxSubscriptions { namespace Model { /** *

Details discovered information about a running instance using Linux * subscriptions.

See Also:

AWS * API Reference

*/ class Instance { public: AWS_LICENSEMANAGERLINUXSUBSCRIPTIONS_API Instance(); AWS_LICENSEMANAGERLINUXSUBSCRIPTIONS_API Instance(Aws::Utils::Json::JsonView jsonValue); AWS_LICENSEMANAGERLINUXSUBSCRIPTIONS_API Instance& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LICENSEMANAGERLINUXSUBSCRIPTIONS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The account ID which owns the instance.

*/ inline const Aws::String& GetAccountID() const{ return m_accountID; } /** *

The account ID which owns the instance.

*/ inline bool AccountIDHasBeenSet() const { return m_accountIDHasBeenSet; } /** *

The account ID which owns the instance.

*/ inline void SetAccountID(const Aws::String& value) { m_accountIDHasBeenSet = true; m_accountID = value; } /** *

The account ID which owns the instance.

*/ inline void SetAccountID(Aws::String&& value) { m_accountIDHasBeenSet = true; m_accountID = std::move(value); } /** *

The account ID which owns the instance.

*/ inline void SetAccountID(const char* value) { m_accountIDHasBeenSet = true; m_accountID.assign(value); } /** *

The account ID which owns the instance.

*/ inline Instance& WithAccountID(const Aws::String& value) { SetAccountID(value); return *this;} /** *

The account ID which owns the instance.

*/ inline Instance& WithAccountID(Aws::String&& value) { SetAccountID(std::move(value)); return *this;} /** *

The account ID which owns the instance.

*/ inline Instance& WithAccountID(const char* value) { SetAccountID(value); return *this;} /** *

The AMI ID used to launch the instance.

*/ inline const Aws::String& GetAmiId() const{ return m_amiId; } /** *

The AMI ID used to launch the instance.

*/ inline bool AmiIdHasBeenSet() const { return m_amiIdHasBeenSet; } /** *

The AMI ID used to launch the instance.

*/ inline void SetAmiId(const Aws::String& value) { m_amiIdHasBeenSet = true; m_amiId = value; } /** *

The AMI ID used to launch the instance.

*/ inline void SetAmiId(Aws::String&& value) { m_amiIdHasBeenSet = true; m_amiId = std::move(value); } /** *

The AMI ID used to launch the instance.

*/ inline void SetAmiId(const char* value) { m_amiIdHasBeenSet = true; m_amiId.assign(value); } /** *

The AMI ID used to launch the instance.

*/ inline Instance& WithAmiId(const Aws::String& value) { SetAmiId(value); return *this;} /** *

The AMI ID used to launch the instance.

*/ inline Instance& WithAmiId(Aws::String&& value) { SetAmiId(std::move(value)); return *this;} /** *

The AMI ID used to launch the instance.

*/ inline Instance& WithAmiId(const char* value) { SetAmiId(value); return *this;} /** *

The instance ID of the resource.

*/ inline const Aws::String& GetInstanceID() const{ return m_instanceID; } /** *

The instance ID of the resource.

*/ inline bool InstanceIDHasBeenSet() const { return m_instanceIDHasBeenSet; } /** *

The instance ID of the resource.

*/ inline void SetInstanceID(const Aws::String& value) { m_instanceIDHasBeenSet = true; m_instanceID = value; } /** *

The instance ID of the resource.

*/ inline void SetInstanceID(Aws::String&& value) { m_instanceIDHasBeenSet = true; m_instanceID = std::move(value); } /** *

The instance ID of the resource.

*/ inline void SetInstanceID(const char* value) { m_instanceIDHasBeenSet = true; m_instanceID.assign(value); } /** *

The instance ID of the resource.

*/ inline Instance& WithInstanceID(const Aws::String& value) { SetInstanceID(value); return *this;} /** *

The instance ID of the resource.

*/ inline Instance& WithInstanceID(Aws::String&& value) { SetInstanceID(std::move(value)); return *this;} /** *

The instance ID of the resource.

*/ inline Instance& WithInstanceID(const char* value) { SetInstanceID(value); return *this;} /** *

The instance type of the resource.

*/ inline const Aws::String& GetInstanceType() const{ return m_instanceType; } /** *

The instance type of the resource.

*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *

The instance type of the resource.

*/ inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *

The instance type of the resource.

*/ inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *

The instance type of the resource.

*/ inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); } /** *

The instance type of the resource.

*/ inline Instance& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;} /** *

The instance type of the resource.

*/ inline Instance& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;} /** *

The instance type of the resource.

*/ inline Instance& WithInstanceType(const char* value) { SetInstanceType(value); return *this;} /** *

The time in which the last discovery updated the instance details.

*/ inline const Aws::String& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *

The time in which the last discovery updated the instance details.

*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *

The time in which the last discovery updated the instance details.

*/ inline void SetLastUpdatedTime(const Aws::String& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *

The time in which the last discovery updated the instance details.

*/ inline void SetLastUpdatedTime(Aws::String&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } /** *

The time in which the last discovery updated the instance details.

*/ inline void SetLastUpdatedTime(const char* value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime.assign(value); } /** *

The time in which the last discovery updated the instance details.

*/ inline Instance& WithLastUpdatedTime(const Aws::String& value) { SetLastUpdatedTime(value); return *this;} /** *

The time in which the last discovery updated the instance details.

*/ inline Instance& WithLastUpdatedTime(Aws::String&& value) { SetLastUpdatedTime(std::move(value)); return *this;} /** *

The time in which the last discovery updated the instance details.

*/ inline Instance& WithLastUpdatedTime(const char* value) { SetLastUpdatedTime(value); return *this;} /** *

The product code for the instance. For more information, see Usage * operation values in the License Manager User Guide .

*/ inline const Aws::Vector& GetProductCode() const{ return m_productCode; } /** *

The product code for the instance. For more information, see Usage * operation values in the License Manager User Guide .

*/ inline bool ProductCodeHasBeenSet() const { return m_productCodeHasBeenSet; } /** *

The product code for the instance. For more information, see Usage * operation values in the License Manager User Guide .

*/ inline void SetProductCode(const Aws::Vector& value) { m_productCodeHasBeenSet = true; m_productCode = value; } /** *

The product code for the instance. For more information, see Usage * operation values in the License Manager User Guide .

*/ inline void SetProductCode(Aws::Vector&& value) { m_productCodeHasBeenSet = true; m_productCode = std::move(value); } /** *

The product code for the instance. For more information, see Usage * operation values in the License Manager User Guide .

*/ inline Instance& WithProductCode(const Aws::Vector& value) { SetProductCode(value); return *this;} /** *

The product code for the instance. For more information, see Usage * operation values in the License Manager User Guide .

*/ inline Instance& WithProductCode(Aws::Vector&& value) { SetProductCode(std::move(value)); return *this;} /** *

The product code for the instance. For more information, see Usage * operation values in the License Manager User Guide .

*/ inline Instance& AddProductCode(const Aws::String& value) { m_productCodeHasBeenSet = true; m_productCode.push_back(value); return *this; } /** *

The product code for the instance. For more information, see Usage * operation values in the License Manager User Guide .

*/ inline Instance& AddProductCode(Aws::String&& value) { m_productCodeHasBeenSet = true; m_productCode.push_back(std::move(value)); return *this; } /** *

The product code for the instance. For more information, see Usage * operation values in the License Manager User Guide .

*/ inline Instance& AddProductCode(const char* value) { m_productCodeHasBeenSet = true; m_productCode.push_back(value); return *this; } /** *

The Region the instance is running in.

*/ inline const Aws::String& GetRegion() const{ return m_region; } /** *

The Region the instance is running in.

*/ inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } /** *

The Region the instance is running in.

*/ inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } /** *

The Region the instance is running in.

*/ inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } /** *

The Region the instance is running in.

*/ inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } /** *

The Region the instance is running in.

*/ inline Instance& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} /** *

The Region the instance is running in.

*/ inline Instance& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} /** *

The Region the instance is running in.

*/ inline Instance& WithRegion(const char* value) { SetRegion(value); return *this;} /** *

The status of the instance.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the instance.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the instance.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the instance.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the instance.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of the instance.

*/ inline Instance& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the instance.

*/ inline Instance& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the instance.

*/ inline Instance& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The name of the subscription being used by the instance.

*/ inline const Aws::String& GetSubscriptionName() const{ return m_subscriptionName; } /** *

The name of the subscription being used by the instance.

*/ inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; } /** *

The name of the subscription being used by the instance.

*/ inline void SetSubscriptionName(const Aws::String& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = value; } /** *

The name of the subscription being used by the instance.

*/ inline void SetSubscriptionName(Aws::String&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::move(value); } /** *

The name of the subscription being used by the instance.

*/ inline void SetSubscriptionName(const char* value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName.assign(value); } /** *

The name of the subscription being used by the instance.

*/ inline Instance& WithSubscriptionName(const Aws::String& value) { SetSubscriptionName(value); return *this;} /** *

The name of the subscription being used by the instance.

*/ inline Instance& WithSubscriptionName(Aws::String&& value) { SetSubscriptionName(std::move(value)); return *this;} /** *

The name of the subscription being used by the instance.

*/ inline Instance& WithSubscriptionName(const char* value) { SetSubscriptionName(value); return *this;} /** *

The usage operation of the instance. For more information, see For more * information, see Usage * operation values in the License Manager User Guide.

*/ inline const Aws::String& GetUsageOperation() const{ return m_usageOperation; } /** *

The usage operation of the instance. For more information, see For more * information, see Usage * operation values in the License Manager User Guide.

*/ inline bool UsageOperationHasBeenSet() const { return m_usageOperationHasBeenSet; } /** *

The usage operation of the instance. For more information, see For more * information, see Usage * operation values in the License Manager User Guide.

*/ inline void SetUsageOperation(const Aws::String& value) { m_usageOperationHasBeenSet = true; m_usageOperation = value; } /** *

The usage operation of the instance. For more information, see For more * information, see Usage * operation values in the License Manager User Guide.

*/ inline void SetUsageOperation(Aws::String&& value) { m_usageOperationHasBeenSet = true; m_usageOperation = std::move(value); } /** *

The usage operation of the instance. For more information, see For more * information, see Usage * operation values in the License Manager User Guide.

*/ inline void SetUsageOperation(const char* value) { m_usageOperationHasBeenSet = true; m_usageOperation.assign(value); } /** *

The usage operation of the instance. For more information, see For more * information, see Usage * operation values in the License Manager User Guide.

*/ inline Instance& WithUsageOperation(const Aws::String& value) { SetUsageOperation(value); return *this;} /** *

The usage operation of the instance. For more information, see For more * information, see Usage * operation values in the License Manager User Guide.

*/ inline Instance& WithUsageOperation(Aws::String&& value) { SetUsageOperation(std::move(value)); return *this;} /** *

The usage operation of the instance. For more information, see For more * information, see Usage * operation values in the License Manager User Guide.

*/ inline Instance& WithUsageOperation(const char* value) { SetUsageOperation(value); return *this;} private: Aws::String m_accountID; bool m_accountIDHasBeenSet = false; Aws::String m_amiId; bool m_amiIdHasBeenSet = false; Aws::String m_instanceID; bool m_instanceIDHasBeenSet = false; Aws::String m_instanceType; bool m_instanceTypeHasBeenSet = false; Aws::String m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet = false; Aws::Vector m_productCode; bool m_productCodeHasBeenSet = false; Aws::String m_region; bool m_regionHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_subscriptionName; bool m_subscriptionNameHasBeenSet = false; Aws::String m_usageOperation; bool m_usageOperationHasBeenSet = false; }; } // namespace Model } // namespace LicenseManagerLinuxSubscriptions } // namespace Aws