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-ssm/include/aws/ssm/model/InstanceAssociation.h

222 lines
6.8 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ssm/SSM_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>One or more association documents on the instance. </p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/InstanceAssociation">AWS
* API Reference</a></p>
*/
class AWS_SSM_API InstanceAssociation
{
public:
InstanceAssociation();
InstanceAssociation(Aws::Utils::Json::JsonView jsonValue);
InstanceAssociation& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The association ID.</p>
*/
inline const Aws::String& GetAssociationId() const{ return m_associationId; }
/**
* <p>The association ID.</p>
*/
inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
/**
* <p>The association ID.</p>
*/
inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
/**
* <p>The association ID.</p>
*/
inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
/**
* <p>The association ID.</p>
*/
inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
/**
* <p>The association ID.</p>
*/
inline InstanceAssociation& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
/**
* <p>The association ID.</p>
*/
inline InstanceAssociation& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
/**
* <p>The association ID.</p>
*/
inline InstanceAssociation& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
/**
* <p>The instance ID.</p>
*/
inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
/**
* <p>The instance ID.</p>
*/
inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
/**
* <p>The instance ID.</p>
*/
inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
/**
* <p>The instance ID.</p>
*/
inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
/**
* <p>The instance ID.</p>
*/
inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
/**
* <p>The instance ID.</p>
*/
inline InstanceAssociation& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
/**
* <p>The instance ID.</p>
*/
inline InstanceAssociation& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
/**
* <p>The instance ID.</p>
*/
inline InstanceAssociation& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
/**
* <p>The content of the association document for the instance(s).</p>
*/
inline const Aws::String& GetContent() const{ return m_content; }
/**
* <p>The content of the association document for the instance(s).</p>
*/
inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
/**
* <p>The content of the association document for the instance(s).</p>
*/
inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
/**
* <p>The content of the association document for the instance(s).</p>
*/
inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
/**
* <p>The content of the association document for the instance(s).</p>
*/
inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
/**
* <p>The content of the association document for the instance(s).</p>
*/
inline InstanceAssociation& WithContent(const Aws::String& value) { SetContent(value); return *this;}
/**
* <p>The content of the association document for the instance(s).</p>
*/
inline InstanceAssociation& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
/**
* <p>The content of the association document for the instance(s).</p>
*/
inline InstanceAssociation& WithContent(const char* value) { SetContent(value); return *this;}
/**
* <p>Version information for the association on the instance.</p>
*/
inline const Aws::String& GetAssociationVersion() const{ return m_associationVersion; }
/**
* <p>Version information for the association on the instance.</p>
*/
inline bool AssociationVersionHasBeenSet() const { return m_associationVersionHasBeenSet; }
/**
* <p>Version information for the association on the instance.</p>
*/
inline void SetAssociationVersion(const Aws::String& value) { m_associationVersionHasBeenSet = true; m_associationVersion = value; }
/**
* <p>Version information for the association on the instance.</p>
*/
inline void SetAssociationVersion(Aws::String&& value) { m_associationVersionHasBeenSet = true; m_associationVersion = std::move(value); }
/**
* <p>Version information for the association on the instance.</p>
*/
inline void SetAssociationVersion(const char* value) { m_associationVersionHasBeenSet = true; m_associationVersion.assign(value); }
/**
* <p>Version information for the association on the instance.</p>
*/
inline InstanceAssociation& WithAssociationVersion(const Aws::String& value) { SetAssociationVersion(value); return *this;}
/**
* <p>Version information for the association on the instance.</p>
*/
inline InstanceAssociation& WithAssociationVersion(Aws::String&& value) { SetAssociationVersion(std::move(value)); return *this;}
/**
* <p>Version information for the association on the instance.</p>
*/
inline InstanceAssociation& WithAssociationVersion(const char* value) { SetAssociationVersion(value); return *this;}
private:
Aws::String m_associationId;
bool m_associationIdHasBeenSet;
Aws::String m_instanceId;
bool m_instanceIdHasBeenSet;
Aws::String m_content;
bool m_contentHasBeenSet;
Aws::String m_associationVersion;
bool m_associationVersionHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws