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-glue/include/aws/glue/model/Condition.h

264 lines
9.4 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/glue/Glue_EXPORTS.h>
#include <aws/glue/model/LogicalOperator.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glue/model/JobRunState.h>
#include <aws/glue/model/CrawlState.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
/**
* <p>Defines a condition under which a trigger fires.</p><p><h3>See Also:</h3>
* <a href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/Condition">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API Condition
{
public:
Condition();
Condition(Aws::Utils::Json::JsonView jsonValue);
Condition& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A logical operator.</p>
*/
inline const LogicalOperator& GetLogicalOperator() const{ return m_logicalOperator; }
/**
* <p>A logical operator.</p>
*/
inline bool LogicalOperatorHasBeenSet() const { return m_logicalOperatorHasBeenSet; }
/**
* <p>A logical operator.</p>
*/
inline void SetLogicalOperator(const LogicalOperator& value) { m_logicalOperatorHasBeenSet = true; m_logicalOperator = value; }
/**
* <p>A logical operator.</p>
*/
inline void SetLogicalOperator(LogicalOperator&& value) { m_logicalOperatorHasBeenSet = true; m_logicalOperator = std::move(value); }
/**
* <p>A logical operator.</p>
*/
inline Condition& WithLogicalOperator(const LogicalOperator& value) { SetLogicalOperator(value); return *this;}
/**
* <p>A logical operator.</p>
*/
inline Condition& WithLogicalOperator(LogicalOperator&& value) { SetLogicalOperator(std::move(value)); return *this;}
/**
* <p>The name of the job whose <code>JobRuns</code> this condition applies to, and
* on which this trigger waits.</p>
*/
inline const Aws::String& GetJobName() const{ return m_jobName; }
/**
* <p>The name of the job whose <code>JobRuns</code> this condition applies to, and
* on which this trigger waits.</p>
*/
inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
/**
* <p>The name of the job whose <code>JobRuns</code> this condition applies to, and
* on which this trigger waits.</p>
*/
inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
/**
* <p>The name of the job whose <code>JobRuns</code> this condition applies to, and
* on which this trigger waits.</p>
*/
inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
/**
* <p>The name of the job whose <code>JobRuns</code> this condition applies to, and
* on which this trigger waits.</p>
*/
inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
/**
* <p>The name of the job whose <code>JobRuns</code> this condition applies to, and
* on which this trigger waits.</p>
*/
inline Condition& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
/**
* <p>The name of the job whose <code>JobRuns</code> this condition applies to, and
* on which this trigger waits.</p>
*/
inline Condition& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
/**
* <p>The name of the job whose <code>JobRuns</code> this condition applies to, and
* on which this trigger waits.</p>
*/
inline Condition& WithJobName(const char* value) { SetJobName(value); return *this;}
/**
* <p>The condition state. Currently, the only job states that a trigger can listen
* for are <code>SUCCEEDED</code>, <code>STOPPED</code>, <code>FAILED</code>, and
* <code>TIMEOUT</code>. The only crawler states that a trigger can listen for are
* <code>SUCCEEDED</code>, <code>FAILED</code>, and <code>CANCELLED</code>.</p>
*/
inline const JobRunState& GetState() const{ return m_state; }
/**
* <p>The condition state. Currently, the only job states that a trigger can listen
* for are <code>SUCCEEDED</code>, <code>STOPPED</code>, <code>FAILED</code>, and
* <code>TIMEOUT</code>. The only crawler states that a trigger can listen for are
* <code>SUCCEEDED</code>, <code>FAILED</code>, and <code>CANCELLED</code>.</p>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The condition state. Currently, the only job states that a trigger can listen
* for are <code>SUCCEEDED</code>, <code>STOPPED</code>, <code>FAILED</code>, and
* <code>TIMEOUT</code>. The only crawler states that a trigger can listen for are
* <code>SUCCEEDED</code>, <code>FAILED</code>, and <code>CANCELLED</code>.</p>
*/
inline void SetState(const JobRunState& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The condition state. Currently, the only job states that a trigger can listen
* for are <code>SUCCEEDED</code>, <code>STOPPED</code>, <code>FAILED</code>, and
* <code>TIMEOUT</code>. The only crawler states that a trigger can listen for are
* <code>SUCCEEDED</code>, <code>FAILED</code>, and <code>CANCELLED</code>.</p>
*/
inline void SetState(JobRunState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The condition state. Currently, the only job states that a trigger can listen
* for are <code>SUCCEEDED</code>, <code>STOPPED</code>, <code>FAILED</code>, and
* <code>TIMEOUT</code>. The only crawler states that a trigger can listen for are
* <code>SUCCEEDED</code>, <code>FAILED</code>, and <code>CANCELLED</code>.</p>
*/
inline Condition& WithState(const JobRunState& value) { SetState(value); return *this;}
/**
* <p>The condition state. Currently, the only job states that a trigger can listen
* for are <code>SUCCEEDED</code>, <code>STOPPED</code>, <code>FAILED</code>, and
* <code>TIMEOUT</code>. The only crawler states that a trigger can listen for are
* <code>SUCCEEDED</code>, <code>FAILED</code>, and <code>CANCELLED</code>.</p>
*/
inline Condition& WithState(JobRunState&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The name of the crawler to which this condition applies.</p>
*/
inline const Aws::String& GetCrawlerName() const{ return m_crawlerName; }
/**
* <p>The name of the crawler to which this condition applies.</p>
*/
inline bool CrawlerNameHasBeenSet() const { return m_crawlerNameHasBeenSet; }
/**
* <p>The name of the crawler to which this condition applies.</p>
*/
inline void SetCrawlerName(const Aws::String& value) { m_crawlerNameHasBeenSet = true; m_crawlerName = value; }
/**
* <p>The name of the crawler to which this condition applies.</p>
*/
inline void SetCrawlerName(Aws::String&& value) { m_crawlerNameHasBeenSet = true; m_crawlerName = std::move(value); }
/**
* <p>The name of the crawler to which this condition applies.</p>
*/
inline void SetCrawlerName(const char* value) { m_crawlerNameHasBeenSet = true; m_crawlerName.assign(value); }
/**
* <p>The name of the crawler to which this condition applies.</p>
*/
inline Condition& WithCrawlerName(const Aws::String& value) { SetCrawlerName(value); return *this;}
/**
* <p>The name of the crawler to which this condition applies.</p>
*/
inline Condition& WithCrawlerName(Aws::String&& value) { SetCrawlerName(std::move(value)); return *this;}
/**
* <p>The name of the crawler to which this condition applies.</p>
*/
inline Condition& WithCrawlerName(const char* value) { SetCrawlerName(value); return *this;}
/**
* <p>The state of the crawler to which this condition applies.</p>
*/
inline const CrawlState& GetCrawlState() const{ return m_crawlState; }
/**
* <p>The state of the crawler to which this condition applies.</p>
*/
inline bool CrawlStateHasBeenSet() const { return m_crawlStateHasBeenSet; }
/**
* <p>The state of the crawler to which this condition applies.</p>
*/
inline void SetCrawlState(const CrawlState& value) { m_crawlStateHasBeenSet = true; m_crawlState = value; }
/**
* <p>The state of the crawler to which this condition applies.</p>
*/
inline void SetCrawlState(CrawlState&& value) { m_crawlStateHasBeenSet = true; m_crawlState = std::move(value); }
/**
* <p>The state of the crawler to which this condition applies.</p>
*/
inline Condition& WithCrawlState(const CrawlState& value) { SetCrawlState(value); return *this;}
/**
* <p>The state of the crawler to which this condition applies.</p>
*/
inline Condition& WithCrawlState(CrawlState&& value) { SetCrawlState(std::move(value)); return *this;}
private:
LogicalOperator m_logicalOperator;
bool m_logicalOperatorHasBeenSet;
Aws::String m_jobName;
bool m_jobNameHasBeenSet;
JobRunState m_state;
bool m_stateHasBeenSet;
Aws::String m_crawlerName;
bool m_crawlerNameHasBeenSet;
CrawlState m_crawlState;
bool m_crawlStateHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws