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-dynamodb/include/aws/dynamodb/model/AttributeDefinition.h

143 lines
5.0 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/dynamodb/DynamoDB_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/dynamodb/model/ScalarAttributeType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DynamoDB
{
namespace Model
{
/**
* <p>Represents an attribute for describing the key schema for the table and
* indexes.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/AttributeDefinition">AWS
* API Reference</a></p>
*/
class AWS_DYNAMODB_API AttributeDefinition
{
public:
AttributeDefinition();
AttributeDefinition(Aws::Utils::Json::JsonView jsonValue);
AttributeDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A name for the attribute.</p>
*/
inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
/**
* <p>A name for the attribute.</p>
*/
inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
/**
* <p>A name for the attribute.</p>
*/
inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
/**
* <p>A name for the attribute.</p>
*/
inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
/**
* <p>A name for the attribute.</p>
*/
inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
/**
* <p>A name for the attribute.</p>
*/
inline AttributeDefinition& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
/**
* <p>A name for the attribute.</p>
*/
inline AttributeDefinition& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
/**
* <p>A name for the attribute.</p>
*/
inline AttributeDefinition& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
/**
* <p>The data type for the attribute, where:</p> <ul> <li> <p> <code>S</code> -
* the attribute is of type String</p> </li> <li> <p> <code>N</code> - the
* attribute is of type Number</p> </li> <li> <p> <code>B</code> - the attribute is
* of type Binary</p> </li> </ul>
*/
inline const ScalarAttributeType& GetAttributeType() const{ return m_attributeType; }
/**
* <p>The data type for the attribute, where:</p> <ul> <li> <p> <code>S</code> -
* the attribute is of type String</p> </li> <li> <p> <code>N</code> - the
* attribute is of type Number</p> </li> <li> <p> <code>B</code> - the attribute is
* of type Binary</p> </li> </ul>
*/
inline bool AttributeTypeHasBeenSet() const { return m_attributeTypeHasBeenSet; }
/**
* <p>The data type for the attribute, where:</p> <ul> <li> <p> <code>S</code> -
* the attribute is of type String</p> </li> <li> <p> <code>N</code> - the
* attribute is of type Number</p> </li> <li> <p> <code>B</code> - the attribute is
* of type Binary</p> </li> </ul>
*/
inline void SetAttributeType(const ScalarAttributeType& value) { m_attributeTypeHasBeenSet = true; m_attributeType = value; }
/**
* <p>The data type for the attribute, where:</p> <ul> <li> <p> <code>S</code> -
* the attribute is of type String</p> </li> <li> <p> <code>N</code> - the
* attribute is of type Number</p> </li> <li> <p> <code>B</code> - the attribute is
* of type Binary</p> </li> </ul>
*/
inline void SetAttributeType(ScalarAttributeType&& value) { m_attributeTypeHasBeenSet = true; m_attributeType = std::move(value); }
/**
* <p>The data type for the attribute, where:</p> <ul> <li> <p> <code>S</code> -
* the attribute is of type String</p> </li> <li> <p> <code>N</code> - the
* attribute is of type Number</p> </li> <li> <p> <code>B</code> - the attribute is
* of type Binary</p> </li> </ul>
*/
inline AttributeDefinition& WithAttributeType(const ScalarAttributeType& value) { SetAttributeType(value); return *this;}
/**
* <p>The data type for the attribute, where:</p> <ul> <li> <p> <code>S</code> -
* the attribute is of type String</p> </li> <li> <p> <code>N</code> - the
* attribute is of type Number</p> </li> <li> <p> <code>B</code> - the attribute is
* of type Binary</p> </li> </ul>
*/
inline AttributeDefinition& WithAttributeType(ScalarAttributeType&& value) { SetAttributeType(std::move(value)); return *this;}
private:
Aws::String m_attributeName;
bool m_attributeNameHasBeenSet;
ScalarAttributeType m_attributeType;
bool m_attributeTypeHasBeenSet;
};
} // namespace Model
} // namespace DynamoDB
} // namespace Aws