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

140 lines
4.3 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/pricing/Pricing_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Pricing
{
namespace Model
{
/**
* <p>The metadata for a service, such as the service code and available attribute
* names.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pricing-2017-10-15/Service">AWS API
* Reference</a></p>
*/
class AWS_PRICING_API Service
{
public:
Service();
Service(Aws::Utils::Json::JsonView jsonValue);
Service& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The code for the AWS service.</p>
*/
inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
/**
* <p>The code for the AWS service.</p>
*/
inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
/**
* <p>The code for the AWS service.</p>
*/
inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
/**
* <p>The code for the AWS service.</p>
*/
inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
/**
* <p>The code for the AWS service.</p>
*/
inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
/**
* <p>The code for the AWS service.</p>
*/
inline Service& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
/**
* <p>The code for the AWS service.</p>
*/
inline Service& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
/**
* <p>The code for the AWS service.</p>
*/
inline Service& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
/**
* <p>The attributes that are available for this service.</p>
*/
inline const Aws::Vector<Aws::String>& GetAttributeNames() const{ return m_attributeNames; }
/**
* <p>The attributes that are available for this service.</p>
*/
inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; }
/**
* <p>The attributes that are available for this service.</p>
*/
inline void SetAttributeNames(const Aws::Vector<Aws::String>& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = value; }
/**
* <p>The attributes that are available for this service.</p>
*/
inline void SetAttributeNames(Aws::Vector<Aws::String>&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = std::move(value); }
/**
* <p>The attributes that are available for this service.</p>
*/
inline Service& WithAttributeNames(const Aws::Vector<Aws::String>& value) { SetAttributeNames(value); return *this;}
/**
* <p>The attributes that are available for this service.</p>
*/
inline Service& WithAttributeNames(Aws::Vector<Aws::String>&& value) { SetAttributeNames(std::move(value)); return *this;}
/**
* <p>The attributes that are available for this service.</p>
*/
inline Service& AddAttributeNames(const Aws::String& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; }
/**
* <p>The attributes that are available for this service.</p>
*/
inline Service& AddAttributeNames(Aws::String&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(std::move(value)); return *this; }
/**
* <p>The attributes that are available for this service.</p>
*/
inline Service& AddAttributeNames(const char* value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; }
private:
Aws::String m_serviceCode;
bool m_serviceCodeHasBeenSet;
Aws::Vector<Aws::String> m_attributeNames;
bool m_attributeNamesHasBeenSet;
};
} // namespace Model
} // namespace Pricing
} // namespace Aws