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-iot/include/aws/iot/model/GetPolicyVersionResult.h

310 lines
9.0 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot/IoT_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoT
{
namespace Model
{
/**
* <p>The output from the GetPolicyVersion operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/GetPolicyVersionResponse">AWS
* API Reference</a></p>
*/
class AWS_IOT_API GetPolicyVersionResult
{
public:
GetPolicyVersionResult();
GetPolicyVersionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetPolicyVersionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The policy ARN.</p>
*/
inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
/**
* <p>The policy ARN.</p>
*/
inline void SetPolicyArn(const Aws::String& value) { m_policyArn = value; }
/**
* <p>The policy ARN.</p>
*/
inline void SetPolicyArn(Aws::String&& value) { m_policyArn = std::move(value); }
/**
* <p>The policy ARN.</p>
*/
inline void SetPolicyArn(const char* value) { m_policyArn.assign(value); }
/**
* <p>The policy ARN.</p>
*/
inline GetPolicyVersionResult& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
/**
* <p>The policy ARN.</p>
*/
inline GetPolicyVersionResult& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
/**
* <p>The policy ARN.</p>
*/
inline GetPolicyVersionResult& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
/**
* <p>The policy name.</p>
*/
inline const Aws::String& GetPolicyName() const{ return m_policyName; }
/**
* <p>The policy name.</p>
*/
inline void SetPolicyName(const Aws::String& value) { m_policyName = value; }
/**
* <p>The policy name.</p>
*/
inline void SetPolicyName(Aws::String&& value) { m_policyName = std::move(value); }
/**
* <p>The policy name.</p>
*/
inline void SetPolicyName(const char* value) { m_policyName.assign(value); }
/**
* <p>The policy name.</p>
*/
inline GetPolicyVersionResult& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
/**
* <p>The policy name.</p>
*/
inline GetPolicyVersionResult& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
/**
* <p>The policy name.</p>
*/
inline GetPolicyVersionResult& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
/**
* <p>The JSON document that describes the policy.</p>
*/
inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
/**
* <p>The JSON document that describes the policy.</p>
*/
inline void SetPolicyDocument(const Aws::String& value) { m_policyDocument = value; }
/**
* <p>The JSON document that describes the policy.</p>
*/
inline void SetPolicyDocument(Aws::String&& value) { m_policyDocument = std::move(value); }
/**
* <p>The JSON document that describes the policy.</p>
*/
inline void SetPolicyDocument(const char* value) { m_policyDocument.assign(value); }
/**
* <p>The JSON document that describes the policy.</p>
*/
inline GetPolicyVersionResult& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
/**
* <p>The JSON document that describes the policy.</p>
*/
inline GetPolicyVersionResult& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
/**
* <p>The JSON document that describes the policy.</p>
*/
inline GetPolicyVersionResult& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
/**
* <p>The policy version ID.</p>
*/
inline const Aws::String& GetPolicyVersionId() const{ return m_policyVersionId; }
/**
* <p>The policy version ID.</p>
*/
inline void SetPolicyVersionId(const Aws::String& value) { m_policyVersionId = value; }
/**
* <p>The policy version ID.</p>
*/
inline void SetPolicyVersionId(Aws::String&& value) { m_policyVersionId = std::move(value); }
/**
* <p>The policy version ID.</p>
*/
inline void SetPolicyVersionId(const char* value) { m_policyVersionId.assign(value); }
/**
* <p>The policy version ID.</p>
*/
inline GetPolicyVersionResult& WithPolicyVersionId(const Aws::String& value) { SetPolicyVersionId(value); return *this;}
/**
* <p>The policy version ID.</p>
*/
inline GetPolicyVersionResult& WithPolicyVersionId(Aws::String&& value) { SetPolicyVersionId(std::move(value)); return *this;}
/**
* <p>The policy version ID.</p>
*/
inline GetPolicyVersionResult& WithPolicyVersionId(const char* value) { SetPolicyVersionId(value); return *this;}
/**
* <p>Specifies whether the policy version is the default.</p>
*/
inline bool GetIsDefaultVersion() const{ return m_isDefaultVersion; }
/**
* <p>Specifies whether the policy version is the default.</p>
*/
inline void SetIsDefaultVersion(bool value) { m_isDefaultVersion = value; }
/**
* <p>Specifies whether the policy version is the default.</p>
*/
inline GetPolicyVersionResult& WithIsDefaultVersion(bool value) { SetIsDefaultVersion(value); return *this;}
/**
* <p>The date the policy was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
/**
* <p>The date the policy was created.</p>
*/
inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDate = value; }
/**
* <p>The date the policy was created.</p>
*/
inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDate = std::move(value); }
/**
* <p>The date the policy was created.</p>
*/
inline GetPolicyVersionResult& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
/**
* <p>The date the policy was created.</p>
*/
inline GetPolicyVersionResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
/**
* <p>The date the policy was last modified.</p>
*/
inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
/**
* <p>The date the policy was last modified.</p>
*/
inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDate = value; }
/**
* <p>The date the policy was last modified.</p>
*/
inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDate = std::move(value); }
/**
* <p>The date the policy was last modified.</p>
*/
inline GetPolicyVersionResult& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;}
/**
* <p>The date the policy was last modified.</p>
*/
inline GetPolicyVersionResult& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;}
/**
* <p>The generation ID of the policy version.</p>
*/
inline const Aws::String& GetGenerationId() const{ return m_generationId; }
/**
* <p>The generation ID of the policy version.</p>
*/
inline void SetGenerationId(const Aws::String& value) { m_generationId = value; }
/**
* <p>The generation ID of the policy version.</p>
*/
inline void SetGenerationId(Aws::String&& value) { m_generationId = std::move(value); }
/**
* <p>The generation ID of the policy version.</p>
*/
inline void SetGenerationId(const char* value) { m_generationId.assign(value); }
/**
* <p>The generation ID of the policy version.</p>
*/
inline GetPolicyVersionResult& WithGenerationId(const Aws::String& value) { SetGenerationId(value); return *this;}
/**
* <p>The generation ID of the policy version.</p>
*/
inline GetPolicyVersionResult& WithGenerationId(Aws::String&& value) { SetGenerationId(std::move(value)); return *this;}
/**
* <p>The generation ID of the policy version.</p>
*/
inline GetPolicyVersionResult& WithGenerationId(const char* value) { SetGenerationId(value); return *this;}
private:
Aws::String m_policyArn;
Aws::String m_policyName;
Aws::String m_policyDocument;
Aws::String m_policyVersionId;
bool m_isDefaultVersion;
Aws::Utils::DateTime m_creationDate;
Aws::Utils::DateTime m_lastModifiedDate;
Aws::String m_generationId;
};
} // namespace Model
} // namespace IoT
} // namespace Aws