This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-license-manager/include/aws/license-manager/model/LicenseConfigurationUsage.h

278 lines
8.9 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/license-manager/LicenseManager_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/license-manager/model/ResourceType.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace LicenseManager
{
namespace Model
{
/**
* <p>Details about the usage of a resource associated with a license
* configuration.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/LicenseConfigurationUsage">AWS
* API Reference</a></p>
*/
class AWS_LICENSEMANAGER_API LicenseConfigurationUsage
{
public:
LicenseConfigurationUsage();
LicenseConfigurationUsage(Aws::Utils::Json::JsonView jsonValue);
LicenseConfigurationUsage& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Amazon Resource Name (ARN) of the resource.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>Amazon Resource Name (ARN) of the resource.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>Amazon Resource Name (ARN) of the resource.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>Amazon Resource Name (ARN) of the resource.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>Amazon Resource Name (ARN) of the resource.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>Amazon Resource Name (ARN) of the resource.</p>
*/
inline LicenseConfigurationUsage& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>Amazon Resource Name (ARN) of the resource.</p>
*/
inline LicenseConfigurationUsage& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>Amazon Resource Name (ARN) of the resource.</p>
*/
inline LicenseConfigurationUsage& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
/**
* <p>Type of resource.</p>
*/
inline const ResourceType& GetResourceType() const{ return m_resourceType; }
/**
* <p>Type of resource.</p>
*/
inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
/**
* <p>Type of resource.</p>
*/
inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
/**
* <p>Type of resource.</p>
*/
inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
/**
* <p>Type of resource.</p>
*/
inline LicenseConfigurationUsage& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
/**
* <p>Type of resource.</p>
*/
inline LicenseConfigurationUsage& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
/**
* <p>Status of the resource.</p>
*/
inline const Aws::String& GetResourceStatus() const{ return m_resourceStatus; }
/**
* <p>Status of the resource.</p>
*/
inline bool ResourceStatusHasBeenSet() const { return m_resourceStatusHasBeenSet; }
/**
* <p>Status of the resource.</p>
*/
inline void SetResourceStatus(const Aws::String& value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = value; }
/**
* <p>Status of the resource.</p>
*/
inline void SetResourceStatus(Aws::String&& value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = std::move(value); }
/**
* <p>Status of the resource.</p>
*/
inline void SetResourceStatus(const char* value) { m_resourceStatusHasBeenSet = true; m_resourceStatus.assign(value); }
/**
* <p>Status of the resource.</p>
*/
inline LicenseConfigurationUsage& WithResourceStatus(const Aws::String& value) { SetResourceStatus(value); return *this;}
/**
* <p>Status of the resource.</p>
*/
inline LicenseConfigurationUsage& WithResourceStatus(Aws::String&& value) { SetResourceStatus(std::move(value)); return *this;}
/**
* <p>Status of the resource.</p>
*/
inline LicenseConfigurationUsage& WithResourceStatus(const char* value) { SetResourceStatus(value); return *this;}
/**
* <p>ID of the account that owns the resource.</p>
*/
inline const Aws::String& GetResourceOwnerId() const{ return m_resourceOwnerId; }
/**
* <p>ID of the account that owns the resource.</p>
*/
inline bool ResourceOwnerIdHasBeenSet() const { return m_resourceOwnerIdHasBeenSet; }
/**
* <p>ID of the account that owns the resource.</p>
*/
inline void SetResourceOwnerId(const Aws::String& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = value; }
/**
* <p>ID of the account that owns the resource.</p>
*/
inline void SetResourceOwnerId(Aws::String&& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = std::move(value); }
/**
* <p>ID of the account that owns the resource.</p>
*/
inline void SetResourceOwnerId(const char* value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId.assign(value); }
/**
* <p>ID of the account that owns the resource.</p>
*/
inline LicenseConfigurationUsage& WithResourceOwnerId(const Aws::String& value) { SetResourceOwnerId(value); return *this;}
/**
* <p>ID of the account that owns the resource.</p>
*/
inline LicenseConfigurationUsage& WithResourceOwnerId(Aws::String&& value) { SetResourceOwnerId(std::move(value)); return *this;}
/**
* <p>ID of the account that owns the resource.</p>
*/
inline LicenseConfigurationUsage& WithResourceOwnerId(const char* value) { SetResourceOwnerId(value); return *this;}
/**
* <p>Time when the license configuration was initially associated with the
* resource.</p>
*/
inline const Aws::Utils::DateTime& GetAssociationTime() const{ return m_associationTime; }
/**
* <p>Time when the license configuration was initially associated with the
* resource.</p>
*/
inline bool AssociationTimeHasBeenSet() const { return m_associationTimeHasBeenSet; }
/**
* <p>Time when the license configuration was initially associated with the
* resource.</p>
*/
inline void SetAssociationTime(const Aws::Utils::DateTime& value) { m_associationTimeHasBeenSet = true; m_associationTime = value; }
/**
* <p>Time when the license configuration was initially associated with the
* resource.</p>
*/
inline void SetAssociationTime(Aws::Utils::DateTime&& value) { m_associationTimeHasBeenSet = true; m_associationTime = std::move(value); }
/**
* <p>Time when the license configuration was initially associated with the
* resource.</p>
*/
inline LicenseConfigurationUsage& WithAssociationTime(const Aws::Utils::DateTime& value) { SetAssociationTime(value); return *this;}
/**
* <p>Time when the license configuration was initially associated with the
* resource.</p>
*/
inline LicenseConfigurationUsage& WithAssociationTime(Aws::Utils::DateTime&& value) { SetAssociationTime(std::move(value)); return *this;}
/**
* <p>Number of licenses consumed by the resource.</p>
*/
inline long long GetConsumedLicenses() const{ return m_consumedLicenses; }
/**
* <p>Number of licenses consumed by the resource.</p>
*/
inline bool ConsumedLicensesHasBeenSet() const { return m_consumedLicensesHasBeenSet; }
/**
* <p>Number of licenses consumed by the resource.</p>
*/
inline void SetConsumedLicenses(long long value) { m_consumedLicensesHasBeenSet = true; m_consumedLicenses = value; }
/**
* <p>Number of licenses consumed by the resource.</p>
*/
inline LicenseConfigurationUsage& WithConsumedLicenses(long long value) { SetConsumedLicenses(value); return *this;}
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
ResourceType m_resourceType;
bool m_resourceTypeHasBeenSet;
Aws::String m_resourceStatus;
bool m_resourceStatusHasBeenSet;
Aws::String m_resourceOwnerId;
bool m_resourceOwnerIdHasBeenSet;
Aws::Utils::DateTime m_associationTime;
bool m_associationTimeHasBeenSet;
long long m_consumedLicenses;
bool m_consumedLicensesHasBeenSet;
};
} // namespace Model
} // namespace LicenseManager
} // namespace Aws