1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/license-manager/LicenseManager_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 template<typename RESULT_TYPE> 14 class AmazonWebServiceResult; 15 16 namespace Utils 17 { 18 namespace Json 19 { 20 class JsonValue; 21 } // namespace Json 22 } // namespace Utils 23 namespace LicenseManager 24 { 25 namespace Model 26 { 27 class AWS_LICENSEMANAGER_API ExtendLicenseConsumptionResult 28 { 29 public: 30 ExtendLicenseConsumptionResult(); 31 ExtendLicenseConsumptionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 32 ExtendLicenseConsumptionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 33 34 35 /** 36 * <p>License consumption token.</p> 37 */ GetLicenseConsumptionToken()38 inline const Aws::String& GetLicenseConsumptionToken() const{ return m_licenseConsumptionToken; } 39 40 /** 41 * <p>License consumption token.</p> 42 */ SetLicenseConsumptionToken(const Aws::String & value)43 inline void SetLicenseConsumptionToken(const Aws::String& value) { m_licenseConsumptionToken = value; } 44 45 /** 46 * <p>License consumption token.</p> 47 */ SetLicenseConsumptionToken(Aws::String && value)48 inline void SetLicenseConsumptionToken(Aws::String&& value) { m_licenseConsumptionToken = std::move(value); } 49 50 /** 51 * <p>License consumption token.</p> 52 */ SetLicenseConsumptionToken(const char * value)53 inline void SetLicenseConsumptionToken(const char* value) { m_licenseConsumptionToken.assign(value); } 54 55 /** 56 * <p>License consumption token.</p> 57 */ WithLicenseConsumptionToken(const Aws::String & value)58 inline ExtendLicenseConsumptionResult& WithLicenseConsumptionToken(const Aws::String& value) { SetLicenseConsumptionToken(value); return *this;} 59 60 /** 61 * <p>License consumption token.</p> 62 */ WithLicenseConsumptionToken(Aws::String && value)63 inline ExtendLicenseConsumptionResult& WithLicenseConsumptionToken(Aws::String&& value) { SetLicenseConsumptionToken(std::move(value)); return *this;} 64 65 /** 66 * <p>License consumption token.</p> 67 */ WithLicenseConsumptionToken(const char * value)68 inline ExtendLicenseConsumptionResult& WithLicenseConsumptionToken(const char* value) { SetLicenseConsumptionToken(value); return *this;} 69 70 71 /** 72 * <p>Date and time at which the license consumption expires.</p> 73 */ GetExpiration()74 inline const Aws::String& GetExpiration() const{ return m_expiration; } 75 76 /** 77 * <p>Date and time at which the license consumption expires.</p> 78 */ SetExpiration(const Aws::String & value)79 inline void SetExpiration(const Aws::String& value) { m_expiration = value; } 80 81 /** 82 * <p>Date and time at which the license consumption expires.</p> 83 */ SetExpiration(Aws::String && value)84 inline void SetExpiration(Aws::String&& value) { m_expiration = std::move(value); } 85 86 /** 87 * <p>Date and time at which the license consumption expires.</p> 88 */ SetExpiration(const char * value)89 inline void SetExpiration(const char* value) { m_expiration.assign(value); } 90 91 /** 92 * <p>Date and time at which the license consumption expires.</p> 93 */ WithExpiration(const Aws::String & value)94 inline ExtendLicenseConsumptionResult& WithExpiration(const Aws::String& value) { SetExpiration(value); return *this;} 95 96 /** 97 * <p>Date and time at which the license consumption expires.</p> 98 */ WithExpiration(Aws::String && value)99 inline ExtendLicenseConsumptionResult& WithExpiration(Aws::String&& value) { SetExpiration(std::move(value)); return *this;} 100 101 /** 102 * <p>Date and time at which the license consumption expires.</p> 103 */ WithExpiration(const char * value)104 inline ExtendLicenseConsumptionResult& WithExpiration(const char* value) { SetExpiration(value); return *this;} 105 106 private: 107 108 Aws::String m_licenseConsumptionToken; 109 110 Aws::String m_expiration; 111 }; 112 113 } // namespace Model 114 } // namespace LicenseManager 115 } // namespace Aws 116