feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,182 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_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 XRay
{
namespace Model
{
/**
* <p>An alias for an edge.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/Alias">AWS API
* Reference</a></p>
*/
class AWS_XRAY_API Alias
{
public:
Alias();
Alias(Aws::Utils::Json::JsonView jsonValue);
Alias& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The canonical name of the alias.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The canonical name of the alias.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The canonical name of the alias.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The canonical name of the alias.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The canonical name of the alias.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The canonical name of the alias.</p>
*/
inline Alias& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The canonical name of the alias.</p>
*/
inline Alias& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The canonical name of the alias.</p>
*/
inline Alias& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A list of names for the alias, including the canonical name.</p>
*/
inline const Aws::Vector<Aws::String>& GetNames() const{ return m_names; }
/**
* <p>A list of names for the alias, including the canonical name.</p>
*/
inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
/**
* <p>A list of names for the alias, including the canonical name.</p>
*/
inline void SetNames(const Aws::Vector<Aws::String>& value) { m_namesHasBeenSet = true; m_names = value; }
/**
* <p>A list of names for the alias, including the canonical name.</p>
*/
inline void SetNames(Aws::Vector<Aws::String>&& value) { m_namesHasBeenSet = true; m_names = std::move(value); }
/**
* <p>A list of names for the alias, including the canonical name.</p>
*/
inline Alias& WithNames(const Aws::Vector<Aws::String>& value) { SetNames(value); return *this;}
/**
* <p>A list of names for the alias, including the canonical name.</p>
*/
inline Alias& WithNames(Aws::Vector<Aws::String>&& value) { SetNames(std::move(value)); return *this;}
/**
* <p>A list of names for the alias, including the canonical name.</p>
*/
inline Alias& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
/**
* <p>A list of names for the alias, including the canonical name.</p>
*/
inline Alias& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; }
/**
* <p>A list of names for the alias, including the canonical name.</p>
*/
inline Alias& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
/**
* <p>The type of the alias.</p>
*/
inline const Aws::String& GetType() const{ return m_type; }
/**
* <p>The type of the alias.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of the alias.</p>
*/
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of the alias.</p>
*/
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type of the alias.</p>
*/
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
/**
* <p>The type of the alias.</p>
*/
inline Alias& WithType(const Aws::String& value) { SetType(value); return *this;}
/**
* <p>The type of the alias.</p>
*/
inline Alias& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The type of the alias.</p>
*/
inline Alias& WithType(const char* value) { SetType(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Vector<Aws::String> m_names;
bool m_namesHasBeenSet;
Aws::String m_type;
bool m_typeHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_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 XRay
{
namespace Model
{
/**
* <p>Value of a segment annotation. Has one of three value types: Number, Boolean
* or String.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/AnnotationValue">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API AnnotationValue
{
public:
AnnotationValue();
AnnotationValue(Aws::Utils::Json::JsonView jsonValue);
AnnotationValue& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Value for a Number annotation.</p>
*/
inline double GetNumberValue() const{ return m_numberValue; }
/**
* <p>Value for a Number annotation.</p>
*/
inline bool NumberValueHasBeenSet() const { return m_numberValueHasBeenSet; }
/**
* <p>Value for a Number annotation.</p>
*/
inline void SetNumberValue(double value) { m_numberValueHasBeenSet = true; m_numberValue = value; }
/**
* <p>Value for a Number annotation.</p>
*/
inline AnnotationValue& WithNumberValue(double value) { SetNumberValue(value); return *this;}
/**
* <p>Value for a Boolean annotation.</p>
*/
inline bool GetBooleanValue() const{ return m_booleanValue; }
/**
* <p>Value for a Boolean annotation.</p>
*/
inline bool BooleanValueHasBeenSet() const { return m_booleanValueHasBeenSet; }
/**
* <p>Value for a Boolean annotation.</p>
*/
inline void SetBooleanValue(bool value) { m_booleanValueHasBeenSet = true; m_booleanValue = value; }
/**
* <p>Value for a Boolean annotation.</p>
*/
inline AnnotationValue& WithBooleanValue(bool value) { SetBooleanValue(value); return *this;}
/**
* <p>Value for a String annotation.</p>
*/
inline const Aws::String& GetStringValue() const{ return m_stringValue; }
/**
* <p>Value for a String annotation.</p>
*/
inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
/**
* <p>Value for a String annotation.</p>
*/
inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
/**
* <p>Value for a String annotation.</p>
*/
inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
/**
* <p>Value for a String annotation.</p>
*/
inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
/**
* <p>Value for a String annotation.</p>
*/
inline AnnotationValue& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
/**
* <p>Value for a String annotation.</p>
*/
inline AnnotationValue& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
/**
* <p>Value for a String annotation.</p>
*/
inline AnnotationValue& WithStringValue(const char* value) { SetStringValue(value); return *this;}
private:
double m_numberValue;
bool m_numberValueHasBeenSet;
bool m_booleanValue;
bool m_booleanValueHasBeenSet;
Aws::String m_stringValue;
bool m_stringValueHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,89 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_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 XRay
{
namespace Model
{
/**
* <p>A list of availability zones corresponding to the segments in a
* trace.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/AvailabilityZoneDetail">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API AvailabilityZoneDetail
{
public:
AvailabilityZoneDetail();
AvailabilityZoneDetail(Aws::Utils::Json::JsonView jsonValue);
AvailabilityZoneDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of a corresponding availability zone.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of a corresponding availability zone.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of a corresponding availability zone.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of a corresponding availability zone.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of a corresponding availability zone.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of a corresponding availability zone.</p>
*/
inline AvailabilityZoneDetail& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of a corresponding availability zone.</p>
*/
inline AvailabilityZoneDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of a corresponding availability zone.</p>
*/
inline AvailabilityZoneDetail& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,186 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p/><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/BackendConnectionErrors">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API BackendConnectionErrors
{
public:
BackendConnectionErrors();
BackendConnectionErrors(Aws::Utils::Json::JsonView jsonValue);
BackendConnectionErrors& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p/>
*/
inline int GetTimeoutCount() const{ return m_timeoutCount; }
/**
* <p/>
*/
inline bool TimeoutCountHasBeenSet() const { return m_timeoutCountHasBeenSet; }
/**
* <p/>
*/
inline void SetTimeoutCount(int value) { m_timeoutCountHasBeenSet = true; m_timeoutCount = value; }
/**
* <p/>
*/
inline BackendConnectionErrors& WithTimeoutCount(int value) { SetTimeoutCount(value); return *this;}
/**
* <p/>
*/
inline int GetConnectionRefusedCount() const{ return m_connectionRefusedCount; }
/**
* <p/>
*/
inline bool ConnectionRefusedCountHasBeenSet() const { return m_connectionRefusedCountHasBeenSet; }
/**
* <p/>
*/
inline void SetConnectionRefusedCount(int value) { m_connectionRefusedCountHasBeenSet = true; m_connectionRefusedCount = value; }
/**
* <p/>
*/
inline BackendConnectionErrors& WithConnectionRefusedCount(int value) { SetConnectionRefusedCount(value); return *this;}
/**
* <p/>
*/
inline int GetHTTPCode4XXCount() const{ return m_hTTPCode4XXCount; }
/**
* <p/>
*/
inline bool HTTPCode4XXCountHasBeenSet() const { return m_hTTPCode4XXCountHasBeenSet; }
/**
* <p/>
*/
inline void SetHTTPCode4XXCount(int value) { m_hTTPCode4XXCountHasBeenSet = true; m_hTTPCode4XXCount = value; }
/**
* <p/>
*/
inline BackendConnectionErrors& WithHTTPCode4XXCount(int value) { SetHTTPCode4XXCount(value); return *this;}
/**
* <p/>
*/
inline int GetHTTPCode5XXCount() const{ return m_hTTPCode5XXCount; }
/**
* <p/>
*/
inline bool HTTPCode5XXCountHasBeenSet() const { return m_hTTPCode5XXCountHasBeenSet; }
/**
* <p/>
*/
inline void SetHTTPCode5XXCount(int value) { m_hTTPCode5XXCountHasBeenSet = true; m_hTTPCode5XXCount = value; }
/**
* <p/>
*/
inline BackendConnectionErrors& WithHTTPCode5XXCount(int value) { SetHTTPCode5XXCount(value); return *this;}
/**
* <p/>
*/
inline int GetUnknownHostCount() const{ return m_unknownHostCount; }
/**
* <p/>
*/
inline bool UnknownHostCountHasBeenSet() const { return m_unknownHostCountHasBeenSet; }
/**
* <p/>
*/
inline void SetUnknownHostCount(int value) { m_unknownHostCountHasBeenSet = true; m_unknownHostCount = value; }
/**
* <p/>
*/
inline BackendConnectionErrors& WithUnknownHostCount(int value) { SetUnknownHostCount(value); return *this;}
/**
* <p/>
*/
inline int GetOtherCount() const{ return m_otherCount; }
/**
* <p/>
*/
inline bool OtherCountHasBeenSet() const { return m_otherCountHasBeenSet; }
/**
* <p/>
*/
inline void SetOtherCount(int value) { m_otherCountHasBeenSet = true; m_otherCount = value; }
/**
* <p/>
*/
inline BackendConnectionErrors& WithOtherCount(int value) { SetOtherCount(value); return *this;}
private:
int m_timeoutCount;
bool m_timeoutCountHasBeenSet;
int m_connectionRefusedCount;
bool m_connectionRefusedCountHasBeenSet;
int m_hTTPCode4XXCount;
bool m_hTTPCode4XXCountHasBeenSet;
int m_hTTPCode5XXCount;
bool m_hTTPCode5XXCountHasBeenSet;
int m_unknownHostCount;
bool m_unknownHostCountHasBeenSet;
int m_otherCount;
bool m_otherCountHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,133 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/XRayRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace XRay
{
namespace Model
{
/**
*/
class AWS_XRAY_API BatchGetTracesRequest : public XRayRequest
{
public:
BatchGetTracesRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "BatchGetTraces"; }
Aws::String SerializePayload() const override;
/**
* <p>Specify the trace IDs of requests for which to retrieve segments.</p>
*/
inline const Aws::Vector<Aws::String>& GetTraceIds() const{ return m_traceIds; }
/**
* <p>Specify the trace IDs of requests for which to retrieve segments.</p>
*/
inline bool TraceIdsHasBeenSet() const { return m_traceIdsHasBeenSet; }
/**
* <p>Specify the trace IDs of requests for which to retrieve segments.</p>
*/
inline void SetTraceIds(const Aws::Vector<Aws::String>& value) { m_traceIdsHasBeenSet = true; m_traceIds = value; }
/**
* <p>Specify the trace IDs of requests for which to retrieve segments.</p>
*/
inline void SetTraceIds(Aws::Vector<Aws::String>&& value) { m_traceIdsHasBeenSet = true; m_traceIds = std::move(value); }
/**
* <p>Specify the trace IDs of requests for which to retrieve segments.</p>
*/
inline BatchGetTracesRequest& WithTraceIds(const Aws::Vector<Aws::String>& value) { SetTraceIds(value); return *this;}
/**
* <p>Specify the trace IDs of requests for which to retrieve segments.</p>
*/
inline BatchGetTracesRequest& WithTraceIds(Aws::Vector<Aws::String>&& value) { SetTraceIds(std::move(value)); return *this;}
/**
* <p>Specify the trace IDs of requests for which to retrieve segments.</p>
*/
inline BatchGetTracesRequest& AddTraceIds(const Aws::String& value) { m_traceIdsHasBeenSet = true; m_traceIds.push_back(value); return *this; }
/**
* <p>Specify the trace IDs of requests for which to retrieve segments.</p>
*/
inline BatchGetTracesRequest& AddTraceIds(Aws::String&& value) { m_traceIdsHasBeenSet = true; m_traceIds.push_back(std::move(value)); return *this; }
/**
* <p>Specify the trace IDs of requests for which to retrieve segments.</p>
*/
inline BatchGetTracesRequest& AddTraceIds(const char* value) { m_traceIdsHasBeenSet = true; m_traceIds.push_back(value); return *this; }
/**
* <p>Pagination token.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Pagination token.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>Pagination token.</p>
*/
inline BatchGetTracesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Pagination token.</p>
*/
inline BatchGetTracesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Pagination token.</p>
*/
inline BatchGetTracesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Aws::String> m_traceIds;
bool m_traceIdsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,160 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/xray/model/Trace.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
class AWS_XRAY_API BatchGetTracesResult
{
public:
BatchGetTracesResult();
BatchGetTracesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchGetTracesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Full traces for the specified requests.</p>
*/
inline const Aws::Vector<Trace>& GetTraces() const{ return m_traces; }
/**
* <p>Full traces for the specified requests.</p>
*/
inline void SetTraces(const Aws::Vector<Trace>& value) { m_traces = value; }
/**
* <p>Full traces for the specified requests.</p>
*/
inline void SetTraces(Aws::Vector<Trace>&& value) { m_traces = std::move(value); }
/**
* <p>Full traces for the specified requests.</p>
*/
inline BatchGetTracesResult& WithTraces(const Aws::Vector<Trace>& value) { SetTraces(value); return *this;}
/**
* <p>Full traces for the specified requests.</p>
*/
inline BatchGetTracesResult& WithTraces(Aws::Vector<Trace>&& value) { SetTraces(std::move(value)); return *this;}
/**
* <p>Full traces for the specified requests.</p>
*/
inline BatchGetTracesResult& AddTraces(const Trace& value) { m_traces.push_back(value); return *this; }
/**
* <p>Full traces for the specified requests.</p>
*/
inline BatchGetTracesResult& AddTraces(Trace&& value) { m_traces.push_back(std::move(value)); return *this; }
/**
* <p>Trace IDs of requests that haven't been processed.</p>
*/
inline const Aws::Vector<Aws::String>& GetUnprocessedTraceIds() const{ return m_unprocessedTraceIds; }
/**
* <p>Trace IDs of requests that haven't been processed.</p>
*/
inline void SetUnprocessedTraceIds(const Aws::Vector<Aws::String>& value) { m_unprocessedTraceIds = value; }
/**
* <p>Trace IDs of requests that haven't been processed.</p>
*/
inline void SetUnprocessedTraceIds(Aws::Vector<Aws::String>&& value) { m_unprocessedTraceIds = std::move(value); }
/**
* <p>Trace IDs of requests that haven't been processed.</p>
*/
inline BatchGetTracesResult& WithUnprocessedTraceIds(const Aws::Vector<Aws::String>& value) { SetUnprocessedTraceIds(value); return *this;}
/**
* <p>Trace IDs of requests that haven't been processed.</p>
*/
inline BatchGetTracesResult& WithUnprocessedTraceIds(Aws::Vector<Aws::String>&& value) { SetUnprocessedTraceIds(std::move(value)); return *this;}
/**
* <p>Trace IDs of requests that haven't been processed.</p>
*/
inline BatchGetTracesResult& AddUnprocessedTraceIds(const Aws::String& value) { m_unprocessedTraceIds.push_back(value); return *this; }
/**
* <p>Trace IDs of requests that haven't been processed.</p>
*/
inline BatchGetTracesResult& AddUnprocessedTraceIds(Aws::String&& value) { m_unprocessedTraceIds.push_back(std::move(value)); return *this; }
/**
* <p>Trace IDs of requests that haven't been processed.</p>
*/
inline BatchGetTracesResult& AddUnprocessedTraceIds(const char* value) { m_unprocessedTraceIds.push_back(value); return *this; }
/**
* <p>Pagination token.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>Pagination token.</p>
*/
inline BatchGetTracesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Pagination token.</p>
*/
inline BatchGetTracesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Pagination token.</p>
*/
inline BatchGetTracesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Trace> m_traces;
Aws::Vector<Aws::String> m_unprocessedTraceIds;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,165 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/XRayRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/xray/model/Tag.h>
#include <utility>
namespace Aws
{
namespace XRay
{
namespace Model
{
/**
*/
class AWS_XRAY_API CreateGroupRequest : public XRayRequest
{
public:
CreateGroupRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateGroup"; }
Aws::String SerializePayload() const override;
/**
* <p>The case-sensitive name of the new group. Default is a reserved name and
* names must be unique.</p>
*/
inline const Aws::String& GetGroupName() const{ return m_groupName; }
/**
* <p>The case-sensitive name of the new group. Default is a reserved name and
* names must be unique.</p>
*/
inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
/**
* <p>The case-sensitive name of the new group. Default is a reserved name and
* names must be unique.</p>
*/
inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
/**
* <p>The case-sensitive name of the new group. Default is a reserved name and
* names must be unique.</p>
*/
inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
/**
* <p>The case-sensitive name of the new group. Default is a reserved name and
* names must be unique.</p>
*/
inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
/**
* <p>The case-sensitive name of the new group. Default is a reserved name and
* names must be unique.</p>
*/
inline CreateGroupRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
/**
* <p>The case-sensitive name of the new group. Default is a reserved name and
* names must be unique.</p>
*/
inline CreateGroupRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
/**
* <p>The case-sensitive name of the new group. Default is a reserved name and
* names must be unique.</p>
*/
inline CreateGroupRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
/**
* <p>The filter expression defining criteria by which to group traces.</p>
*/
inline const Aws::String& GetFilterExpression() const{ return m_filterExpression; }
/**
* <p>The filter expression defining criteria by which to group traces.</p>
*/
inline bool FilterExpressionHasBeenSet() const { return m_filterExpressionHasBeenSet; }
/**
* <p>The filter expression defining criteria by which to group traces.</p>
*/
inline void SetFilterExpression(const Aws::String& value) { m_filterExpressionHasBeenSet = true; m_filterExpression = value; }
/**
* <p>The filter expression defining criteria by which to group traces.</p>
*/
inline void SetFilterExpression(Aws::String&& value) { m_filterExpressionHasBeenSet = true; m_filterExpression = std::move(value); }
/**
* <p>The filter expression defining criteria by which to group traces.</p>
*/
inline void SetFilterExpression(const char* value) { m_filterExpressionHasBeenSet = true; m_filterExpression.assign(value); }
/**
* <p>The filter expression defining criteria by which to group traces.</p>
*/
inline CreateGroupRequest& WithFilterExpression(const Aws::String& value) { SetFilterExpression(value); return *this;}
/**
* <p>The filter expression defining criteria by which to group traces.</p>
*/
inline CreateGroupRequest& WithFilterExpression(Aws::String&& value) { SetFilterExpression(std::move(value)); return *this;}
/**
* <p>The filter expression defining criteria by which to group traces.</p>
*/
inline CreateGroupRequest& WithFilterExpression(const char* value) { SetFilterExpression(value); return *this;}
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
inline CreateGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
inline CreateGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
inline CreateGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
inline CreateGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_groupName;
bool m_groupNameHasBeenSet;
Aws::String m_filterExpression;
bool m_filterExpressionHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/model/Group.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
class AWS_XRAY_API CreateGroupResult
{
public:
CreateGroupResult();
CreateGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The group that was created. Contains the name of the group that was created,
* the ARN of the group that was generated based on the group name, and the filter
* expression that was assigned to the group.</p>
*/
inline const Group& GetGroup() const{ return m_group; }
/**
* <p>The group that was created. Contains the name of the group that was created,
* the ARN of the group that was generated based on the group name, and the filter
* expression that was assigned to the group.</p>
*/
inline void SetGroup(const Group& value) { m_group = value; }
/**
* <p>The group that was created. Contains the name of the group that was created,
* the ARN of the group that was generated based on the group name, and the filter
* expression that was assigned to the group.</p>
*/
inline void SetGroup(Group&& value) { m_group = std::move(value); }
/**
* <p>The group that was created. Contains the name of the group that was created,
* the ARN of the group that was generated based on the group name, and the filter
* expression that was assigned to the group.</p>
*/
inline CreateGroupResult& WithGroup(const Group& value) { SetGroup(value); return *this;}
/**
* <p>The group that was created. Contains the name of the group that was created,
* the ARN of the group that was generated based on the group name, and the filter
* expression that was assigned to the group.</p>
*/
inline CreateGroupResult& WithGroup(Group&& value) { SetGroup(std::move(value)); return *this;}
private:
Group m_group;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,103 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/XRayRequest.h>
#include <aws/xray/model/SamplingRule.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/xray/model/Tag.h>
#include <utility>
namespace Aws
{
namespace XRay
{
namespace Model
{
/**
*/
class AWS_XRAY_API CreateSamplingRuleRequest : public XRayRequest
{
public:
CreateSamplingRuleRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateSamplingRule"; }
Aws::String SerializePayload() const override;
/**
* <p>The rule definition.</p>
*/
inline const SamplingRule& GetSamplingRule() const{ return m_samplingRule; }
/**
* <p>The rule definition.</p>
*/
inline bool SamplingRuleHasBeenSet() const { return m_samplingRuleHasBeenSet; }
/**
* <p>The rule definition.</p>
*/
inline void SetSamplingRule(const SamplingRule& value) { m_samplingRuleHasBeenSet = true; m_samplingRule = value; }
/**
* <p>The rule definition.</p>
*/
inline void SetSamplingRule(SamplingRule&& value) { m_samplingRuleHasBeenSet = true; m_samplingRule = std::move(value); }
/**
* <p>The rule definition.</p>
*/
inline CreateSamplingRuleRequest& WithSamplingRule(const SamplingRule& value) { SetSamplingRule(value); return *this;}
/**
* <p>The rule definition.</p>
*/
inline CreateSamplingRuleRequest& WithSamplingRule(SamplingRule&& value) { SetSamplingRule(std::move(value)); return *this;}
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
inline CreateSamplingRuleRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
inline CreateSamplingRuleRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
inline CreateSamplingRuleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
inline CreateSamplingRuleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
SamplingRule m_samplingRule;
bool m_samplingRuleHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/model/SamplingRuleRecord.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
class AWS_XRAY_API CreateSamplingRuleResult
{
public:
CreateSamplingRuleResult();
CreateSamplingRuleResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateSamplingRuleResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The saved rule definition and metadata.</p>
*/
inline const SamplingRuleRecord& GetSamplingRuleRecord() const{ return m_samplingRuleRecord; }
/**
* <p>The saved rule definition and metadata.</p>
*/
inline void SetSamplingRuleRecord(const SamplingRuleRecord& value) { m_samplingRuleRecord = value; }
/**
* <p>The saved rule definition and metadata.</p>
*/
inline void SetSamplingRuleRecord(SamplingRuleRecord&& value) { m_samplingRuleRecord = std::move(value); }
/**
* <p>The saved rule definition and metadata.</p>
*/
inline CreateSamplingRuleResult& WithSamplingRuleRecord(const SamplingRuleRecord& value) { SetSamplingRuleRecord(value); return *this;}
/**
* <p>The saved rule definition and metadata.</p>
*/
inline CreateSamplingRuleResult& WithSamplingRuleRecord(SamplingRuleRecord&& value) { SetSamplingRuleRecord(std::move(value)); return *this;}
private:
SamplingRuleRecord m_samplingRuleRecord;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,127 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/XRayRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace XRay
{
namespace Model
{
/**
*/
class AWS_XRAY_API DeleteGroupRequest : public XRayRequest
{
public:
DeleteGroupRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteGroup"; }
Aws::String SerializePayload() const override;
/**
* <p>The case-sensitive name of the group.</p>
*/
inline const Aws::String& GetGroupName() const{ return m_groupName; }
/**
* <p>The case-sensitive name of the group.</p>
*/
inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
/**
* <p>The case-sensitive name of the group.</p>
*/
inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
/**
* <p>The case-sensitive name of the group.</p>
*/
inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
/**
* <p>The case-sensitive name of the group.</p>
*/
inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
/**
* <p>The case-sensitive name of the group.</p>
*/
inline DeleteGroupRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
/**
* <p>The case-sensitive name of the group.</p>
*/
inline DeleteGroupRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
/**
* <p>The case-sensitive name of the group.</p>
*/
inline DeleteGroupRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
/**
* <p>The ARN of the group that was generated on creation.</p>
*/
inline const Aws::String& GetGroupARN() const{ return m_groupARN; }
/**
* <p>The ARN of the group that was generated on creation.</p>
*/
inline bool GroupARNHasBeenSet() const { return m_groupARNHasBeenSet; }
/**
* <p>The ARN of the group that was generated on creation.</p>
*/
inline void SetGroupARN(const Aws::String& value) { m_groupARNHasBeenSet = true; m_groupARN = value; }
/**
* <p>The ARN of the group that was generated on creation.</p>
*/
inline void SetGroupARN(Aws::String&& value) { m_groupARNHasBeenSet = true; m_groupARN = std::move(value); }
/**
* <p>The ARN of the group that was generated on creation.</p>
*/
inline void SetGroupARN(const char* value) { m_groupARNHasBeenSet = true; m_groupARN.assign(value); }
/**
* <p>The ARN of the group that was generated on creation.</p>
*/
inline DeleteGroupRequest& WithGroupARN(const Aws::String& value) { SetGroupARN(value); return *this;}
/**
* <p>The ARN of the group that was generated on creation.</p>
*/
inline DeleteGroupRequest& WithGroupARN(Aws::String&& value) { SetGroupARN(std::move(value)); return *this;}
/**
* <p>The ARN of the group that was generated on creation.</p>
*/
inline DeleteGroupRequest& WithGroupARN(const char* value) { SetGroupARN(value); return *this;}
private:
Aws::String m_groupName;
bool m_groupNameHasBeenSet;
Aws::String m_groupARN;
bool m_groupARNHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
class AWS_XRAY_API DeleteGroupResult
{
public:
DeleteGroupResult();
DeleteGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,143 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/XRayRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace XRay
{
namespace Model
{
/**
*/
class AWS_XRAY_API DeleteSamplingRuleRequest : public XRayRequest
{
public:
DeleteSamplingRuleRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteSamplingRule"; }
Aws::String SerializePayload() const override;
/**
* <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline const Aws::String& GetRuleName() const{ return m_ruleName; }
/**
* <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
/**
* <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
/**
* <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
/**
* <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
/**
* <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline DeleteSamplingRuleRequest& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
/**
* <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline DeleteSamplingRuleRequest& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
/**
* <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline DeleteSamplingRuleRequest& WithRuleName(const char* value) { SetRuleName(value); return *this;}
/**
* <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline const Aws::String& GetRuleARN() const{ return m_ruleARN; }
/**
* <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline bool RuleARNHasBeenSet() const { return m_ruleARNHasBeenSet; }
/**
* <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline void SetRuleARN(const Aws::String& value) { m_ruleARNHasBeenSet = true; m_ruleARN = value; }
/**
* <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline void SetRuleARN(Aws::String&& value) { m_ruleARNHasBeenSet = true; m_ruleARN = std::move(value); }
/**
* <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline void SetRuleARN(const char* value) { m_ruleARNHasBeenSet = true; m_ruleARN.assign(value); }
/**
* <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline DeleteSamplingRuleRequest& WithRuleARN(const Aws::String& value) { SetRuleARN(value); return *this;}
/**
* <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline DeleteSamplingRuleRequest& WithRuleARN(Aws::String&& value) { SetRuleARN(std::move(value)); return *this;}
/**
* <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline DeleteSamplingRuleRequest& WithRuleARN(const char* value) { SetRuleARN(value); return *this;}
private:
Aws::String m_ruleName;
bool m_ruleNameHasBeenSet;
Aws::String m_ruleARN;
bool m_ruleARNHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/model/SamplingRuleRecord.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
class AWS_XRAY_API DeleteSamplingRuleResult
{
public:
DeleteSamplingRuleResult();
DeleteSamplingRuleResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteSamplingRuleResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The deleted rule definition and metadata.</p>
*/
inline const SamplingRuleRecord& GetSamplingRuleRecord() const{ return m_samplingRuleRecord; }
/**
* <p>The deleted rule definition and metadata.</p>
*/
inline void SetSamplingRuleRecord(const SamplingRuleRecord& value) { m_samplingRuleRecord = value; }
/**
* <p>The deleted rule definition and metadata.</p>
*/
inline void SetSamplingRuleRecord(SamplingRuleRecord&& value) { m_samplingRuleRecord = std::move(value); }
/**
* <p>The deleted rule definition and metadata.</p>
*/
inline DeleteSamplingRuleResult& WithSamplingRuleRecord(const SamplingRuleRecord& value) { SetSamplingRuleRecord(value); return *this;}
/**
* <p>The deleted rule definition and metadata.</p>
*/
inline DeleteSamplingRuleResult& WithSamplingRuleRecord(SamplingRuleRecord&& value) { SetSamplingRuleRecord(std::move(value)); return *this;}
private:
SamplingRuleRecord m_samplingRuleRecord;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,262 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/DateTime.h>
#include <aws/xray/model/EdgeStatistics.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/xray/model/HistogramEntry.h>
#include <aws/xray/model/Alias.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>Information about a connection between two services.</p><p><h3>See Also:</h3>
* <a href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/Edge">AWS API
* Reference</a></p>
*/
class AWS_XRAY_API Edge
{
public:
Edge();
Edge(Aws::Utils::Json::JsonView jsonValue);
Edge& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Identifier of the edge. Unique within a service map.</p>
*/
inline int GetReferenceId() const{ return m_referenceId; }
/**
* <p>Identifier of the edge. Unique within a service map.</p>
*/
inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; }
/**
* <p>Identifier of the edge. Unique within a service map.</p>
*/
inline void SetReferenceId(int value) { m_referenceIdHasBeenSet = true; m_referenceId = value; }
/**
* <p>Identifier of the edge. Unique within a service map.</p>
*/
inline Edge& WithReferenceId(int value) { SetReferenceId(value); return *this;}
/**
* <p>The start time of the first segment on the edge.</p>
*/
inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
/**
* <p>The start time of the first segment on the edge.</p>
*/
inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
/**
* <p>The start time of the first segment on the edge.</p>
*/
inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
/**
* <p>The start time of the first segment on the edge.</p>
*/
inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
/**
* <p>The start time of the first segment on the edge.</p>
*/
inline Edge& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
/**
* <p>The start time of the first segment on the edge.</p>
*/
inline Edge& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
/**
* <p>The end time of the last segment on the edge.</p>
*/
inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
/**
* <p>The end time of the last segment on the edge.</p>
*/
inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
/**
* <p>The end time of the last segment on the edge.</p>
*/
inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
/**
* <p>The end time of the last segment on the edge.</p>
*/
inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
/**
* <p>The end time of the last segment on the edge.</p>
*/
inline Edge& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
/**
* <p>The end time of the last segment on the edge.</p>
*/
inline Edge& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
/**
* <p>Response statistics for segments on the edge.</p>
*/
inline const EdgeStatistics& GetSummaryStatistics() const{ return m_summaryStatistics; }
/**
* <p>Response statistics for segments on the edge.</p>
*/
inline bool SummaryStatisticsHasBeenSet() const { return m_summaryStatisticsHasBeenSet; }
/**
* <p>Response statistics for segments on the edge.</p>
*/
inline void SetSummaryStatistics(const EdgeStatistics& value) { m_summaryStatisticsHasBeenSet = true; m_summaryStatistics = value; }
/**
* <p>Response statistics for segments on the edge.</p>
*/
inline void SetSummaryStatistics(EdgeStatistics&& value) { m_summaryStatisticsHasBeenSet = true; m_summaryStatistics = std::move(value); }
/**
* <p>Response statistics for segments on the edge.</p>
*/
inline Edge& WithSummaryStatistics(const EdgeStatistics& value) { SetSummaryStatistics(value); return *this;}
/**
* <p>Response statistics for segments on the edge.</p>
*/
inline Edge& WithSummaryStatistics(EdgeStatistics&& value) { SetSummaryStatistics(std::move(value)); return *this;}
/**
* <p>A histogram that maps the spread of client response times on an edge.</p>
*/
inline const Aws::Vector<HistogramEntry>& GetResponseTimeHistogram() const{ return m_responseTimeHistogram; }
/**
* <p>A histogram that maps the spread of client response times on an edge.</p>
*/
inline bool ResponseTimeHistogramHasBeenSet() const { return m_responseTimeHistogramHasBeenSet; }
/**
* <p>A histogram that maps the spread of client response times on an edge.</p>
*/
inline void SetResponseTimeHistogram(const Aws::Vector<HistogramEntry>& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram = value; }
/**
* <p>A histogram that maps the spread of client response times on an edge.</p>
*/
inline void SetResponseTimeHistogram(Aws::Vector<HistogramEntry>&& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram = std::move(value); }
/**
* <p>A histogram that maps the spread of client response times on an edge.</p>
*/
inline Edge& WithResponseTimeHistogram(const Aws::Vector<HistogramEntry>& value) { SetResponseTimeHistogram(value); return *this;}
/**
* <p>A histogram that maps the spread of client response times on an edge.</p>
*/
inline Edge& WithResponseTimeHistogram(Aws::Vector<HistogramEntry>&& value) { SetResponseTimeHistogram(std::move(value)); return *this;}
/**
* <p>A histogram that maps the spread of client response times on an edge.</p>
*/
inline Edge& AddResponseTimeHistogram(const HistogramEntry& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram.push_back(value); return *this; }
/**
* <p>A histogram that maps the spread of client response times on an edge.</p>
*/
inline Edge& AddResponseTimeHistogram(HistogramEntry&& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram.push_back(std::move(value)); return *this; }
/**
* <p>Aliases for the edge.</p>
*/
inline const Aws::Vector<Alias>& GetAliases() const{ return m_aliases; }
/**
* <p>Aliases for the edge.</p>
*/
inline bool AliasesHasBeenSet() const { return m_aliasesHasBeenSet; }
/**
* <p>Aliases for the edge.</p>
*/
inline void SetAliases(const Aws::Vector<Alias>& value) { m_aliasesHasBeenSet = true; m_aliases = value; }
/**
* <p>Aliases for the edge.</p>
*/
inline void SetAliases(Aws::Vector<Alias>&& value) { m_aliasesHasBeenSet = true; m_aliases = std::move(value); }
/**
* <p>Aliases for the edge.</p>
*/
inline Edge& WithAliases(const Aws::Vector<Alias>& value) { SetAliases(value); return *this;}
/**
* <p>Aliases for the edge.</p>
*/
inline Edge& WithAliases(Aws::Vector<Alias>&& value) { SetAliases(std::move(value)); return *this;}
/**
* <p>Aliases for the edge.</p>
*/
inline Edge& AddAliases(const Alias& value) { m_aliasesHasBeenSet = true; m_aliases.push_back(value); return *this; }
/**
* <p>Aliases for the edge.</p>
*/
inline Edge& AddAliases(Alias&& value) { m_aliasesHasBeenSet = true; m_aliases.push_back(std::move(value)); return *this; }
private:
int m_referenceId;
bool m_referenceIdHasBeenSet;
Aws::Utils::DateTime m_startTime;
bool m_startTimeHasBeenSet;
Aws::Utils::DateTime m_endTime;
bool m_endTimeHasBeenSet;
EdgeStatistics m_summaryStatistics;
bool m_summaryStatisticsHasBeenSet;
Aws::Vector<HistogramEntry> m_responseTimeHistogram;
bool m_responseTimeHistogramHasBeenSet;
Aws::Vector<Alias> m_aliases;
bool m_aliasesHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,197 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/model/ErrorStatistics.h>
#include <aws/xray/model/FaultStatistics.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>Response statistics for an edge.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/EdgeStatistics">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API EdgeStatistics
{
public:
EdgeStatistics();
EdgeStatistics(Aws::Utils::Json::JsonView jsonValue);
EdgeStatistics& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The number of requests that completed with a 2xx Success status code.</p>
*/
inline long long GetOkCount() const{ return m_okCount; }
/**
* <p>The number of requests that completed with a 2xx Success status code.</p>
*/
inline bool OkCountHasBeenSet() const { return m_okCountHasBeenSet; }
/**
* <p>The number of requests that completed with a 2xx Success status code.</p>
*/
inline void SetOkCount(long long value) { m_okCountHasBeenSet = true; m_okCount = value; }
/**
* <p>The number of requests that completed with a 2xx Success status code.</p>
*/
inline EdgeStatistics& WithOkCount(long long value) { SetOkCount(value); return *this;}
/**
* <p>Information about requests that failed with a 4xx Client Error status
* code.</p>
*/
inline const ErrorStatistics& GetErrorStatistics() const{ return m_errorStatistics; }
/**
* <p>Information about requests that failed with a 4xx Client Error status
* code.</p>
*/
inline bool ErrorStatisticsHasBeenSet() const { return m_errorStatisticsHasBeenSet; }
/**
* <p>Information about requests that failed with a 4xx Client Error status
* code.</p>
*/
inline void SetErrorStatistics(const ErrorStatistics& value) { m_errorStatisticsHasBeenSet = true; m_errorStatistics = value; }
/**
* <p>Information about requests that failed with a 4xx Client Error status
* code.</p>
*/
inline void SetErrorStatistics(ErrorStatistics&& value) { m_errorStatisticsHasBeenSet = true; m_errorStatistics = std::move(value); }
/**
* <p>Information about requests that failed with a 4xx Client Error status
* code.</p>
*/
inline EdgeStatistics& WithErrorStatistics(const ErrorStatistics& value) { SetErrorStatistics(value); return *this;}
/**
* <p>Information about requests that failed with a 4xx Client Error status
* code.</p>
*/
inline EdgeStatistics& WithErrorStatistics(ErrorStatistics&& value) { SetErrorStatistics(std::move(value)); return *this;}
/**
* <p>Information about requests that failed with a 5xx Server Error status
* code.</p>
*/
inline const FaultStatistics& GetFaultStatistics() const{ return m_faultStatistics; }
/**
* <p>Information about requests that failed with a 5xx Server Error status
* code.</p>
*/
inline bool FaultStatisticsHasBeenSet() const { return m_faultStatisticsHasBeenSet; }
/**
* <p>Information about requests that failed with a 5xx Server Error status
* code.</p>
*/
inline void SetFaultStatistics(const FaultStatistics& value) { m_faultStatisticsHasBeenSet = true; m_faultStatistics = value; }
/**
* <p>Information about requests that failed with a 5xx Server Error status
* code.</p>
*/
inline void SetFaultStatistics(FaultStatistics&& value) { m_faultStatisticsHasBeenSet = true; m_faultStatistics = std::move(value); }
/**
* <p>Information about requests that failed with a 5xx Server Error status
* code.</p>
*/
inline EdgeStatistics& WithFaultStatistics(const FaultStatistics& value) { SetFaultStatistics(value); return *this;}
/**
* <p>Information about requests that failed with a 5xx Server Error status
* code.</p>
*/
inline EdgeStatistics& WithFaultStatistics(FaultStatistics&& value) { SetFaultStatistics(std::move(value)); return *this;}
/**
* <p>The total number of completed requests.</p>
*/
inline long long GetTotalCount() const{ return m_totalCount; }
/**
* <p>The total number of completed requests.</p>
*/
inline bool TotalCountHasBeenSet() const { return m_totalCountHasBeenSet; }
/**
* <p>The total number of completed requests.</p>
*/
inline void SetTotalCount(long long value) { m_totalCountHasBeenSet = true; m_totalCount = value; }
/**
* <p>The total number of completed requests.</p>
*/
inline EdgeStatistics& WithTotalCount(long long value) { SetTotalCount(value); return *this;}
/**
* <p>The aggregate response time of completed requests.</p>
*/
inline double GetTotalResponseTime() const{ return m_totalResponseTime; }
/**
* <p>The aggregate response time of completed requests.</p>
*/
inline bool TotalResponseTimeHasBeenSet() const { return m_totalResponseTimeHasBeenSet; }
/**
* <p>The aggregate response time of completed requests.</p>
*/
inline void SetTotalResponseTime(double value) { m_totalResponseTimeHasBeenSet = true; m_totalResponseTime = value; }
/**
* <p>The aggregate response time of completed requests.</p>
*/
inline EdgeStatistics& WithTotalResponseTime(double value) { SetTotalResponseTime(value); return *this;}
private:
long long m_okCount;
bool m_okCountHasBeenSet;
ErrorStatistics m_errorStatistics;
bool m_errorStatisticsHasBeenSet;
FaultStatistics m_faultStatistics;
bool m_faultStatisticsHasBeenSet;
long long m_totalCount;
bool m_totalCountHasBeenSet;
double m_totalResponseTime;
bool m_totalResponseTimeHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,179 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/xray/model/EncryptionStatus.h>
#include <aws/xray/model/EncryptionType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>A configuration document that specifies encryption configuration
* settings.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/EncryptionConfig">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API EncryptionConfig
{
public:
EncryptionConfig();
EncryptionConfig(Aws::Utils::Json::JsonView jsonValue);
EncryptionConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the customer master key (CMK) used for encryption, if
* applicable.</p>
*/
inline const Aws::String& GetKeyId() const{ return m_keyId; }
/**
* <p>The ID of the customer master key (CMK) used for encryption, if
* applicable.</p>
*/
inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
/**
* <p>The ID of the customer master key (CMK) used for encryption, if
* applicable.</p>
*/
inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
/**
* <p>The ID of the customer master key (CMK) used for encryption, if
* applicable.</p>
*/
inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
/**
* <p>The ID of the customer master key (CMK) used for encryption, if
* applicable.</p>
*/
inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
/**
* <p>The ID of the customer master key (CMK) used for encryption, if
* applicable.</p>
*/
inline EncryptionConfig& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
/**
* <p>The ID of the customer master key (CMK) used for encryption, if
* applicable.</p>
*/
inline EncryptionConfig& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
/**
* <p>The ID of the customer master key (CMK) used for encryption, if
* applicable.</p>
*/
inline EncryptionConfig& WithKeyId(const char* value) { SetKeyId(value); return *this;}
/**
* <p>The encryption status. While the status is <code>UPDATING</code>, X-Ray may
* encrypt data with a combination of the new and old settings.</p>
*/
inline const EncryptionStatus& GetStatus() const{ return m_status; }
/**
* <p>The encryption status. While the status is <code>UPDATING</code>, X-Ray may
* encrypt data with a combination of the new and old settings.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The encryption status. While the status is <code>UPDATING</code>, X-Ray may
* encrypt data with a combination of the new and old settings.</p>
*/
inline void SetStatus(const EncryptionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The encryption status. While the status is <code>UPDATING</code>, X-Ray may
* encrypt data with a combination of the new and old settings.</p>
*/
inline void SetStatus(EncryptionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The encryption status. While the status is <code>UPDATING</code>, X-Ray may
* encrypt data with a combination of the new and old settings.</p>
*/
inline EncryptionConfig& WithStatus(const EncryptionStatus& value) { SetStatus(value); return *this;}
/**
* <p>The encryption status. While the status is <code>UPDATING</code>, X-Ray may
* encrypt data with a combination of the new and old settings.</p>
*/
inline EncryptionConfig& WithStatus(EncryptionStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The type of encryption. Set to <code>KMS</code> for encryption with CMKs. Set
* to <code>NONE</code> for default encryption.</p>
*/
inline const EncryptionType& GetType() const{ return m_type; }
/**
* <p>The type of encryption. Set to <code>KMS</code> for encryption with CMKs. Set
* to <code>NONE</code> for default encryption.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of encryption. Set to <code>KMS</code> for encryption with CMKs. Set
* to <code>NONE</code> for default encryption.</p>
*/
inline void SetType(const EncryptionType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of encryption. Set to <code>KMS</code> for encryption with CMKs. Set
* to <code>NONE</code> for default encryption.</p>
*/
inline void SetType(EncryptionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type of encryption. Set to <code>KMS</code> for encryption with CMKs. Set
* to <code>NONE</code> for default encryption.</p>
*/
inline EncryptionConfig& WithType(const EncryptionType& value) { SetType(value); return *this;}
/**
* <p>The type of encryption. Set to <code>KMS</code> for encryption with CMKs. Set
* to <code>NONE</code> for default encryption.</p>
*/
inline EncryptionConfig& WithType(EncryptionType&& value) { SetType(std::move(value)); return *this;}
private:
Aws::String m_keyId;
bool m_keyIdHasBeenSet;
EncryptionStatus m_status;
bool m_statusHasBeenSet;
EncryptionType m_type;
bool m_typeHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace XRay
{
namespace Model
{
enum class EncryptionStatus
{
NOT_SET,
UPDATING,
ACTIVE
};
namespace EncryptionStatusMapper
{
AWS_XRAY_API EncryptionStatus GetEncryptionStatusForName(const Aws::String& name);
AWS_XRAY_API Aws::String GetNameForEncryptionStatus(EncryptionStatus value);
} // namespace EncryptionStatusMapper
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace XRay
{
namespace Model
{
enum class EncryptionType
{
NOT_SET,
NONE,
KMS
};
namespace EncryptionTypeMapper
{
AWS_XRAY_API EncryptionType GetEncryptionTypeForName(const Aws::String& name);
AWS_XRAY_API Aws::String GetNameForEncryptionType(EncryptionType value);
} // namespace EncryptionTypeMapper
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,121 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/xray/model/ErrorRootCauseService.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>The root cause of a trace summary error.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ErrorRootCause">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API ErrorRootCause
{
public:
ErrorRootCause();
ErrorRootCause(Aws::Utils::Json::JsonView jsonValue);
ErrorRootCause& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A list of services corresponding to an error. A service identifies a segment
* and it contains a name, account ID, type, and inferred flag.</p>
*/
inline const Aws::Vector<ErrorRootCauseService>& GetServices() const{ return m_services; }
/**
* <p>A list of services corresponding to an error. A service identifies a segment
* and it contains a name, account ID, type, and inferred flag.</p>
*/
inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
/**
* <p>A list of services corresponding to an error. A service identifies a segment
* and it contains a name, account ID, type, and inferred flag.</p>
*/
inline void SetServices(const Aws::Vector<ErrorRootCauseService>& value) { m_servicesHasBeenSet = true; m_services = value; }
/**
* <p>A list of services corresponding to an error. A service identifies a segment
* and it contains a name, account ID, type, and inferred flag.</p>
*/
inline void SetServices(Aws::Vector<ErrorRootCauseService>&& value) { m_servicesHasBeenSet = true; m_services = std::move(value); }
/**
* <p>A list of services corresponding to an error. A service identifies a segment
* and it contains a name, account ID, type, and inferred flag.</p>
*/
inline ErrorRootCause& WithServices(const Aws::Vector<ErrorRootCauseService>& value) { SetServices(value); return *this;}
/**
* <p>A list of services corresponding to an error. A service identifies a segment
* and it contains a name, account ID, type, and inferred flag.</p>
*/
inline ErrorRootCause& WithServices(Aws::Vector<ErrorRootCauseService>&& value) { SetServices(std::move(value)); return *this;}
/**
* <p>A list of services corresponding to an error. A service identifies a segment
* and it contains a name, account ID, type, and inferred flag.</p>
*/
inline ErrorRootCause& AddServices(const ErrorRootCauseService& value) { m_servicesHasBeenSet = true; m_services.push_back(value); return *this; }
/**
* <p>A list of services corresponding to an error. A service identifies a segment
* and it contains a name, account ID, type, and inferred flag.</p>
*/
inline ErrorRootCause& AddServices(ErrorRootCauseService&& value) { m_servicesHasBeenSet = true; m_services.push_back(std::move(value)); return *this; }
/**
* <p>A flag that denotes that the root cause impacts the trace client.</p>
*/
inline bool GetClientImpacting() const{ return m_clientImpacting; }
/**
* <p>A flag that denotes that the root cause impacts the trace client.</p>
*/
inline bool ClientImpactingHasBeenSet() const { return m_clientImpactingHasBeenSet; }
/**
* <p>A flag that denotes that the root cause impacts the trace client.</p>
*/
inline void SetClientImpacting(bool value) { m_clientImpactingHasBeenSet = true; m_clientImpacting = value; }
/**
* <p>A flag that denotes that the root cause impacts the trace client.</p>
*/
inline ErrorRootCause& WithClientImpacting(bool value) { SetClientImpacting(value); return *this;}
private:
Aws::Vector<ErrorRootCauseService> m_services;
bool m_servicesHasBeenSet;
bool m_clientImpacting;
bool m_clientImpactingHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,159 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/xray/model/RootCauseException.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>A collection of segments and corresponding subsegments associated to a trace
* summary error.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ErrorRootCauseEntity">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API ErrorRootCauseEntity
{
public:
ErrorRootCauseEntity();
ErrorRootCauseEntity(Aws::Utils::Json::JsonView jsonValue);
ErrorRootCauseEntity& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the entity.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the entity.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the entity.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the entity.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the entity.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the entity.</p>
*/
inline ErrorRootCauseEntity& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the entity.</p>
*/
inline ErrorRootCauseEntity& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the entity.</p>
*/
inline ErrorRootCauseEntity& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The types and messages of the exceptions.</p>
*/
inline const Aws::Vector<RootCauseException>& GetExceptions() const{ return m_exceptions; }
/**
* <p>The types and messages of the exceptions.</p>
*/
inline bool ExceptionsHasBeenSet() const { return m_exceptionsHasBeenSet; }
/**
* <p>The types and messages of the exceptions.</p>
*/
inline void SetExceptions(const Aws::Vector<RootCauseException>& value) { m_exceptionsHasBeenSet = true; m_exceptions = value; }
/**
* <p>The types and messages of the exceptions.</p>
*/
inline void SetExceptions(Aws::Vector<RootCauseException>&& value) { m_exceptionsHasBeenSet = true; m_exceptions = std::move(value); }
/**
* <p>The types and messages of the exceptions.</p>
*/
inline ErrorRootCauseEntity& WithExceptions(const Aws::Vector<RootCauseException>& value) { SetExceptions(value); return *this;}
/**
* <p>The types and messages of the exceptions.</p>
*/
inline ErrorRootCauseEntity& WithExceptions(Aws::Vector<RootCauseException>&& value) { SetExceptions(std::move(value)); return *this;}
/**
* <p>The types and messages of the exceptions.</p>
*/
inline ErrorRootCauseEntity& AddExceptions(const RootCauseException& value) { m_exceptionsHasBeenSet = true; m_exceptions.push_back(value); return *this; }
/**
* <p>The types and messages of the exceptions.</p>
*/
inline ErrorRootCauseEntity& AddExceptions(RootCauseException&& value) { m_exceptionsHasBeenSet = true; m_exceptions.push_back(std::move(value)); return *this; }
/**
* <p>A flag that denotes a remote subsegment.</p>
*/
inline bool GetRemote() const{ return m_remote; }
/**
* <p>A flag that denotes a remote subsegment.</p>
*/
inline bool RemoteHasBeenSet() const { return m_remoteHasBeenSet; }
/**
* <p>A flag that denotes a remote subsegment.</p>
*/
inline void SetRemote(bool value) { m_remoteHasBeenSet = true; m_remote = value; }
/**
* <p>A flag that denotes a remote subsegment.</p>
*/
inline ErrorRootCauseEntity& WithRemote(bool value) { SetRemote(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Vector<RootCauseException> m_exceptions;
bool m_exceptionsHasBeenSet;
bool m_remote;
bool m_remoteHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,296 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/xray/model/ErrorRootCauseEntity.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>A collection of fields identifying the services in a trace summary
* error.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ErrorRootCauseService">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API ErrorRootCauseService
{
public:
ErrorRootCauseService();
ErrorRootCauseService(Aws::Utils::Json::JsonView jsonValue);
ErrorRootCauseService& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The service name.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The service name.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The service name.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The service name.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The service name.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The service name.</p>
*/
inline ErrorRootCauseService& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The service name.</p>
*/
inline ErrorRootCauseService& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The service name.</p>
*/
inline ErrorRootCauseService& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A collection of associated service names.</p>
*/
inline const Aws::Vector<Aws::String>& GetNames() const{ return m_names; }
/**
* <p>A collection of associated service names.</p>
*/
inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
/**
* <p>A collection of associated service names.</p>
*/
inline void SetNames(const Aws::Vector<Aws::String>& value) { m_namesHasBeenSet = true; m_names = value; }
/**
* <p>A collection of associated service names.</p>
*/
inline void SetNames(Aws::Vector<Aws::String>&& value) { m_namesHasBeenSet = true; m_names = std::move(value); }
/**
* <p>A collection of associated service names.</p>
*/
inline ErrorRootCauseService& WithNames(const Aws::Vector<Aws::String>& value) { SetNames(value); return *this;}
/**
* <p>A collection of associated service names.</p>
*/
inline ErrorRootCauseService& WithNames(Aws::Vector<Aws::String>&& value) { SetNames(std::move(value)); return *this;}
/**
* <p>A collection of associated service names.</p>
*/
inline ErrorRootCauseService& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
/**
* <p>A collection of associated service names.</p>
*/
inline ErrorRootCauseService& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; }
/**
* <p>A collection of associated service names.</p>
*/
inline ErrorRootCauseService& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
/**
* <p>The type associated to the service.</p>
*/
inline const Aws::String& GetType() const{ return m_type; }
/**
* <p>The type associated to the service.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type associated to the service.</p>
*/
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type associated to the service.</p>
*/
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type associated to the service.</p>
*/
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
/**
* <p>The type associated to the service.</p>
*/
inline ErrorRootCauseService& WithType(const Aws::String& value) { SetType(value); return *this;}
/**
* <p>The type associated to the service.</p>
*/
inline ErrorRootCauseService& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The type associated to the service.</p>
*/
inline ErrorRootCauseService& WithType(const char* value) { SetType(value); return *this;}
/**
* <p>The account ID associated to the service.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The account ID associated to the service.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The account ID associated to the service.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The account ID associated to the service.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The account ID associated to the service.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The account ID associated to the service.</p>
*/
inline ErrorRootCauseService& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The account ID associated to the service.</p>
*/
inline ErrorRootCauseService& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The account ID associated to the service.</p>
*/
inline ErrorRootCauseService& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The path of root cause entities found on the service. </p>
*/
inline const Aws::Vector<ErrorRootCauseEntity>& GetEntityPath() const{ return m_entityPath; }
/**
* <p>The path of root cause entities found on the service. </p>
*/
inline bool EntityPathHasBeenSet() const { return m_entityPathHasBeenSet; }
/**
* <p>The path of root cause entities found on the service. </p>
*/
inline void SetEntityPath(const Aws::Vector<ErrorRootCauseEntity>& value) { m_entityPathHasBeenSet = true; m_entityPath = value; }
/**
* <p>The path of root cause entities found on the service. </p>
*/
inline void SetEntityPath(Aws::Vector<ErrorRootCauseEntity>&& value) { m_entityPathHasBeenSet = true; m_entityPath = std::move(value); }
/**
* <p>The path of root cause entities found on the service. </p>
*/
inline ErrorRootCauseService& WithEntityPath(const Aws::Vector<ErrorRootCauseEntity>& value) { SetEntityPath(value); return *this;}
/**
* <p>The path of root cause entities found on the service. </p>
*/
inline ErrorRootCauseService& WithEntityPath(Aws::Vector<ErrorRootCauseEntity>&& value) { SetEntityPath(std::move(value)); return *this;}
/**
* <p>The path of root cause entities found on the service. </p>
*/
inline ErrorRootCauseService& AddEntityPath(const ErrorRootCauseEntity& value) { m_entityPathHasBeenSet = true; m_entityPath.push_back(value); return *this; }
/**
* <p>The path of root cause entities found on the service. </p>
*/
inline ErrorRootCauseService& AddEntityPath(ErrorRootCauseEntity&& value) { m_entityPathHasBeenSet = true; m_entityPath.push_back(std::move(value)); return *this; }
/**
* <p>A Boolean value indicating if the service is inferred from the trace.</p>
*/
inline bool GetInferred() const{ return m_inferred; }
/**
* <p>A Boolean value indicating if the service is inferred from the trace.</p>
*/
inline bool InferredHasBeenSet() const { return m_inferredHasBeenSet; }
/**
* <p>A Boolean value indicating if the service is inferred from the trace.</p>
*/
inline void SetInferred(bool value) { m_inferredHasBeenSet = true; m_inferred = value; }
/**
* <p>A Boolean value indicating if the service is inferred from the trace.</p>
*/
inline ErrorRootCauseService& WithInferred(bool value) { SetInferred(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Vector<Aws::String> m_names;
bool m_namesHasBeenSet;
Aws::String m_type;
bool m_typeHasBeenSet;
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::Vector<ErrorRootCauseEntity> m_entityPath;
bool m_entityPathHasBeenSet;
bool m_inferred;
bool m_inferredHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,123 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>Information about requests that failed with a 4xx Client Error status
* code.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ErrorStatistics">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API ErrorStatistics
{
public:
ErrorStatistics();
ErrorStatistics(Aws::Utils::Json::JsonView jsonValue);
ErrorStatistics& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The number of requests that failed with a 419 throttling status code.</p>
*/
inline long long GetThrottleCount() const{ return m_throttleCount; }
/**
* <p>The number of requests that failed with a 419 throttling status code.</p>
*/
inline bool ThrottleCountHasBeenSet() const { return m_throttleCountHasBeenSet; }
/**
* <p>The number of requests that failed with a 419 throttling status code.</p>
*/
inline void SetThrottleCount(long long value) { m_throttleCountHasBeenSet = true; m_throttleCount = value; }
/**
* <p>The number of requests that failed with a 419 throttling status code.</p>
*/
inline ErrorStatistics& WithThrottleCount(long long value) { SetThrottleCount(value); return *this;}
/**
* <p>The number of requests that failed with untracked 4xx Client Error status
* codes.</p>
*/
inline long long GetOtherCount() const{ return m_otherCount; }
/**
* <p>The number of requests that failed with untracked 4xx Client Error status
* codes.</p>
*/
inline bool OtherCountHasBeenSet() const { return m_otherCountHasBeenSet; }
/**
* <p>The number of requests that failed with untracked 4xx Client Error status
* codes.</p>
*/
inline void SetOtherCount(long long value) { m_otherCountHasBeenSet = true; m_otherCount = value; }
/**
* <p>The number of requests that failed with untracked 4xx Client Error status
* codes.</p>
*/
inline ErrorStatistics& WithOtherCount(long long value) { SetOtherCount(value); return *this;}
/**
* <p>The total number of requests that failed with a 4xx Client Error status
* code.</p>
*/
inline long long GetTotalCount() const{ return m_totalCount; }
/**
* <p>The total number of requests that failed with a 4xx Client Error status
* code.</p>
*/
inline bool TotalCountHasBeenSet() const { return m_totalCountHasBeenSet; }
/**
* <p>The total number of requests that failed with a 4xx Client Error status
* code.</p>
*/
inline void SetTotalCount(long long value) { m_totalCountHasBeenSet = true; m_totalCount = value; }
/**
* <p>The total number of requests that failed with a 4xx Client Error status
* code.</p>
*/
inline ErrorStatistics& WithTotalCount(long long value) { SetTotalCount(value); return *this;}
private:
long long m_throttleCount;
bool m_throttleCountHasBeenSet;
long long m_otherCount;
bool m_otherCountHasBeenSet;
long long m_totalCount;
bool m_totalCountHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,122 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/xray/model/FaultRootCauseService.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>The root cause information for a trace summary fault.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/FaultRootCause">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API FaultRootCause
{
public:
FaultRootCause();
FaultRootCause(Aws::Utils::Json::JsonView jsonValue);
FaultRootCause& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A list of corresponding services. A service identifies a segment and it
* contains a name, account ID, type, and inferred flag.</p>
*/
inline const Aws::Vector<FaultRootCauseService>& GetServices() const{ return m_services; }
/**
* <p>A list of corresponding services. A service identifies a segment and it
* contains a name, account ID, type, and inferred flag.</p>
*/
inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
/**
* <p>A list of corresponding services. A service identifies a segment and it
* contains a name, account ID, type, and inferred flag.</p>
*/
inline void SetServices(const Aws::Vector<FaultRootCauseService>& value) { m_servicesHasBeenSet = true; m_services = value; }
/**
* <p>A list of corresponding services. A service identifies a segment and it
* contains a name, account ID, type, and inferred flag.</p>
*/
inline void SetServices(Aws::Vector<FaultRootCauseService>&& value) { m_servicesHasBeenSet = true; m_services = std::move(value); }
/**
* <p>A list of corresponding services. A service identifies a segment and it
* contains a name, account ID, type, and inferred flag.</p>
*/
inline FaultRootCause& WithServices(const Aws::Vector<FaultRootCauseService>& value) { SetServices(value); return *this;}
/**
* <p>A list of corresponding services. A service identifies a segment and it
* contains a name, account ID, type, and inferred flag.</p>
*/
inline FaultRootCause& WithServices(Aws::Vector<FaultRootCauseService>&& value) { SetServices(std::move(value)); return *this;}
/**
* <p>A list of corresponding services. A service identifies a segment and it
* contains a name, account ID, type, and inferred flag.</p>
*/
inline FaultRootCause& AddServices(const FaultRootCauseService& value) { m_servicesHasBeenSet = true; m_services.push_back(value); return *this; }
/**
* <p>A list of corresponding services. A service identifies a segment and it
* contains a name, account ID, type, and inferred flag.</p>
*/
inline FaultRootCause& AddServices(FaultRootCauseService&& value) { m_servicesHasBeenSet = true; m_services.push_back(std::move(value)); return *this; }
/**
* <p>A flag that denotes that the root cause impacts the trace client.</p>
*/
inline bool GetClientImpacting() const{ return m_clientImpacting; }
/**
* <p>A flag that denotes that the root cause impacts the trace client.</p>
*/
inline bool ClientImpactingHasBeenSet() const { return m_clientImpactingHasBeenSet; }
/**
* <p>A flag that denotes that the root cause impacts the trace client.</p>
*/
inline void SetClientImpacting(bool value) { m_clientImpactingHasBeenSet = true; m_clientImpacting = value; }
/**
* <p>A flag that denotes that the root cause impacts the trace client.</p>
*/
inline FaultRootCause& WithClientImpacting(bool value) { SetClientImpacting(value); return *this;}
private:
Aws::Vector<FaultRootCauseService> m_services;
bool m_servicesHasBeenSet;
bool m_clientImpacting;
bool m_clientImpactingHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,159 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/xray/model/RootCauseException.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>A collection of segments and corresponding subsegments associated to a trace
* summary fault error.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/FaultRootCauseEntity">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API FaultRootCauseEntity
{
public:
FaultRootCauseEntity();
FaultRootCauseEntity(Aws::Utils::Json::JsonView jsonValue);
FaultRootCauseEntity& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the entity.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the entity.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the entity.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the entity.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the entity.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the entity.</p>
*/
inline FaultRootCauseEntity& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the entity.</p>
*/
inline FaultRootCauseEntity& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the entity.</p>
*/
inline FaultRootCauseEntity& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The types and messages of the exceptions.</p>
*/
inline const Aws::Vector<RootCauseException>& GetExceptions() const{ return m_exceptions; }
/**
* <p>The types and messages of the exceptions.</p>
*/
inline bool ExceptionsHasBeenSet() const { return m_exceptionsHasBeenSet; }
/**
* <p>The types and messages of the exceptions.</p>
*/
inline void SetExceptions(const Aws::Vector<RootCauseException>& value) { m_exceptionsHasBeenSet = true; m_exceptions = value; }
/**
* <p>The types and messages of the exceptions.</p>
*/
inline void SetExceptions(Aws::Vector<RootCauseException>&& value) { m_exceptionsHasBeenSet = true; m_exceptions = std::move(value); }
/**
* <p>The types and messages of the exceptions.</p>
*/
inline FaultRootCauseEntity& WithExceptions(const Aws::Vector<RootCauseException>& value) { SetExceptions(value); return *this;}
/**
* <p>The types and messages of the exceptions.</p>
*/
inline FaultRootCauseEntity& WithExceptions(Aws::Vector<RootCauseException>&& value) { SetExceptions(std::move(value)); return *this;}
/**
* <p>The types and messages of the exceptions.</p>
*/
inline FaultRootCauseEntity& AddExceptions(const RootCauseException& value) { m_exceptionsHasBeenSet = true; m_exceptions.push_back(value); return *this; }
/**
* <p>The types and messages of the exceptions.</p>
*/
inline FaultRootCauseEntity& AddExceptions(RootCauseException&& value) { m_exceptionsHasBeenSet = true; m_exceptions.push_back(std::move(value)); return *this; }
/**
* <p>A flag that denotes a remote subsegment.</p>
*/
inline bool GetRemote() const{ return m_remote; }
/**
* <p>A flag that denotes a remote subsegment.</p>
*/
inline bool RemoteHasBeenSet() const { return m_remoteHasBeenSet; }
/**
* <p>A flag that denotes a remote subsegment.</p>
*/
inline void SetRemote(bool value) { m_remoteHasBeenSet = true; m_remote = value; }
/**
* <p>A flag that denotes a remote subsegment.</p>
*/
inline FaultRootCauseEntity& WithRemote(bool value) { SetRemote(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Vector<RootCauseException> m_exceptions;
bool m_exceptionsHasBeenSet;
bool m_remote;
bool m_remoteHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,296 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/xray/model/FaultRootCauseEntity.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>A collection of fields identifying the services in a trace summary
* fault.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/FaultRootCauseService">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API FaultRootCauseService
{
public:
FaultRootCauseService();
FaultRootCauseService(Aws::Utils::Json::JsonView jsonValue);
FaultRootCauseService& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The service name.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The service name.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The service name.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The service name.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The service name.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The service name.</p>
*/
inline FaultRootCauseService& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The service name.</p>
*/
inline FaultRootCauseService& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The service name.</p>
*/
inline FaultRootCauseService& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A collection of associated service names.</p>
*/
inline const Aws::Vector<Aws::String>& GetNames() const{ return m_names; }
/**
* <p>A collection of associated service names.</p>
*/
inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
/**
* <p>A collection of associated service names.</p>
*/
inline void SetNames(const Aws::Vector<Aws::String>& value) { m_namesHasBeenSet = true; m_names = value; }
/**
* <p>A collection of associated service names.</p>
*/
inline void SetNames(Aws::Vector<Aws::String>&& value) { m_namesHasBeenSet = true; m_names = std::move(value); }
/**
* <p>A collection of associated service names.</p>
*/
inline FaultRootCauseService& WithNames(const Aws::Vector<Aws::String>& value) { SetNames(value); return *this;}
/**
* <p>A collection of associated service names.</p>
*/
inline FaultRootCauseService& WithNames(Aws::Vector<Aws::String>&& value) { SetNames(std::move(value)); return *this;}
/**
* <p>A collection of associated service names.</p>
*/
inline FaultRootCauseService& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
/**
* <p>A collection of associated service names.</p>
*/
inline FaultRootCauseService& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; }
/**
* <p>A collection of associated service names.</p>
*/
inline FaultRootCauseService& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
/**
* <p>The type associated to the service.</p>
*/
inline const Aws::String& GetType() const{ return m_type; }
/**
* <p>The type associated to the service.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type associated to the service.</p>
*/
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type associated to the service.</p>
*/
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type associated to the service.</p>
*/
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
/**
* <p>The type associated to the service.</p>
*/
inline FaultRootCauseService& WithType(const Aws::String& value) { SetType(value); return *this;}
/**
* <p>The type associated to the service.</p>
*/
inline FaultRootCauseService& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The type associated to the service.</p>
*/
inline FaultRootCauseService& WithType(const char* value) { SetType(value); return *this;}
/**
* <p>The account ID associated to the service.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The account ID associated to the service.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The account ID associated to the service.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The account ID associated to the service.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The account ID associated to the service.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The account ID associated to the service.</p>
*/
inline FaultRootCauseService& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The account ID associated to the service.</p>
*/
inline FaultRootCauseService& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The account ID associated to the service.</p>
*/
inline FaultRootCauseService& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The path of root cause entities found on the service. </p>
*/
inline const Aws::Vector<FaultRootCauseEntity>& GetEntityPath() const{ return m_entityPath; }
/**
* <p>The path of root cause entities found on the service. </p>
*/
inline bool EntityPathHasBeenSet() const { return m_entityPathHasBeenSet; }
/**
* <p>The path of root cause entities found on the service. </p>
*/
inline void SetEntityPath(const Aws::Vector<FaultRootCauseEntity>& value) { m_entityPathHasBeenSet = true; m_entityPath = value; }
/**
* <p>The path of root cause entities found on the service. </p>
*/
inline void SetEntityPath(Aws::Vector<FaultRootCauseEntity>&& value) { m_entityPathHasBeenSet = true; m_entityPath = std::move(value); }
/**
* <p>The path of root cause entities found on the service. </p>
*/
inline FaultRootCauseService& WithEntityPath(const Aws::Vector<FaultRootCauseEntity>& value) { SetEntityPath(value); return *this;}
/**
* <p>The path of root cause entities found on the service. </p>
*/
inline FaultRootCauseService& WithEntityPath(Aws::Vector<FaultRootCauseEntity>&& value) { SetEntityPath(std::move(value)); return *this;}
/**
* <p>The path of root cause entities found on the service. </p>
*/
inline FaultRootCauseService& AddEntityPath(const FaultRootCauseEntity& value) { m_entityPathHasBeenSet = true; m_entityPath.push_back(value); return *this; }
/**
* <p>The path of root cause entities found on the service. </p>
*/
inline FaultRootCauseService& AddEntityPath(FaultRootCauseEntity&& value) { m_entityPathHasBeenSet = true; m_entityPath.push_back(std::move(value)); return *this; }
/**
* <p>A Boolean value indicating if the service is inferred from the trace.</p>
*/
inline bool GetInferred() const{ return m_inferred; }
/**
* <p>A Boolean value indicating if the service is inferred from the trace.</p>
*/
inline bool InferredHasBeenSet() const { return m_inferredHasBeenSet; }
/**
* <p>A Boolean value indicating if the service is inferred from the trace.</p>
*/
inline void SetInferred(bool value) { m_inferredHasBeenSet = true; m_inferred = value; }
/**
* <p>A Boolean value indicating if the service is inferred from the trace.</p>
*/
inline FaultRootCauseService& WithInferred(bool value) { SetInferred(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Vector<Aws::String> m_names;
bool m_namesHasBeenSet;
Aws::String m_type;
bool m_typeHasBeenSet;
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::Vector<FaultRootCauseEntity> m_entityPath;
bool m_entityPathHasBeenSet;
bool m_inferred;
bool m_inferredHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,99 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>Information about requests that failed with a 5xx Server Error status
* code.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/FaultStatistics">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API FaultStatistics
{
public:
FaultStatistics();
FaultStatistics(Aws::Utils::Json::JsonView jsonValue);
FaultStatistics& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The number of requests that failed with untracked 5xx Server Error status
* codes.</p>
*/
inline long long GetOtherCount() const{ return m_otherCount; }
/**
* <p>The number of requests that failed with untracked 5xx Server Error status
* codes.</p>
*/
inline bool OtherCountHasBeenSet() const { return m_otherCountHasBeenSet; }
/**
* <p>The number of requests that failed with untracked 5xx Server Error status
* codes.</p>
*/
inline void SetOtherCount(long long value) { m_otherCountHasBeenSet = true; m_otherCount = value; }
/**
* <p>The number of requests that failed with untracked 5xx Server Error status
* codes.</p>
*/
inline FaultStatistics& WithOtherCount(long long value) { SetOtherCount(value); return *this;}
/**
* <p>The total number of requests that failed with a 5xx Server Error status
* code.</p>
*/
inline long long GetTotalCount() const{ return m_totalCount; }
/**
* <p>The total number of requests that failed with a 5xx Server Error status
* code.</p>
*/
inline bool TotalCountHasBeenSet() const { return m_totalCountHasBeenSet; }
/**
* <p>The total number of requests that failed with a 5xx Server Error status
* code.</p>
*/
inline void SetTotalCount(long long value) { m_totalCountHasBeenSet = true; m_totalCount = value; }
/**
* <p>The total number of requests that failed with a 5xx Server Error status
* code.</p>
*/
inline FaultStatistics& WithTotalCount(long long value) { SetTotalCount(value); return *this;}
private:
long long m_otherCount;
bool m_otherCountHasBeenSet;
long long m_totalCount;
bool m_totalCountHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/XRayRequest.h>
namespace Aws
{
namespace XRay
{
namespace Model
{
/**
*/
class AWS_XRAY_API GetEncryptionConfigRequest : public XRayRequest
{
public:
GetEncryptionConfigRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "GetEncryptionConfig"; }
Aws::String SerializePayload() const override;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/model/EncryptionConfig.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
class AWS_XRAY_API GetEncryptionConfigResult
{
public:
GetEncryptionConfigResult();
GetEncryptionConfigResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetEncryptionConfigResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The encryption configuration document.</p>
*/
inline const EncryptionConfig& GetEncryptionConfig() const{ return m_encryptionConfig; }
/**
* <p>The encryption configuration document.</p>
*/
inline void SetEncryptionConfig(const EncryptionConfig& value) { m_encryptionConfig = value; }
/**
* <p>The encryption configuration document.</p>
*/
inline void SetEncryptionConfig(EncryptionConfig&& value) { m_encryptionConfig = std::move(value); }
/**
* <p>The encryption configuration document.</p>
*/
inline GetEncryptionConfigResult& WithEncryptionConfig(const EncryptionConfig& value) { SetEncryptionConfig(value); return *this;}
/**
* <p>The encryption configuration document.</p>
*/
inline GetEncryptionConfigResult& WithEncryptionConfig(EncryptionConfig&& value) { SetEncryptionConfig(std::move(value)); return *this;}
private:
EncryptionConfig m_encryptionConfig;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,127 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/XRayRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace XRay
{
namespace Model
{
/**
*/
class AWS_XRAY_API GetGroupRequest : public XRayRequest
{
public:
GetGroupRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "GetGroup"; }
Aws::String SerializePayload() const override;
/**
* <p>The case-sensitive name of the group.</p>
*/
inline const Aws::String& GetGroupName() const{ return m_groupName; }
/**
* <p>The case-sensitive name of the group.</p>
*/
inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
/**
* <p>The case-sensitive name of the group.</p>
*/
inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
/**
* <p>The case-sensitive name of the group.</p>
*/
inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
/**
* <p>The case-sensitive name of the group.</p>
*/
inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
/**
* <p>The case-sensitive name of the group.</p>
*/
inline GetGroupRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
/**
* <p>The case-sensitive name of the group.</p>
*/
inline GetGroupRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
/**
* <p>The case-sensitive name of the group.</p>
*/
inline GetGroupRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
/**
* <p>The ARN of the group that was generated on creation.</p>
*/
inline const Aws::String& GetGroupARN() const{ return m_groupARN; }
/**
* <p>The ARN of the group that was generated on creation.</p>
*/
inline bool GroupARNHasBeenSet() const { return m_groupARNHasBeenSet; }
/**
* <p>The ARN of the group that was generated on creation.</p>
*/
inline void SetGroupARN(const Aws::String& value) { m_groupARNHasBeenSet = true; m_groupARN = value; }
/**
* <p>The ARN of the group that was generated on creation.</p>
*/
inline void SetGroupARN(Aws::String&& value) { m_groupARNHasBeenSet = true; m_groupARN = std::move(value); }
/**
* <p>The ARN of the group that was generated on creation.</p>
*/
inline void SetGroupARN(const char* value) { m_groupARNHasBeenSet = true; m_groupARN.assign(value); }
/**
* <p>The ARN of the group that was generated on creation.</p>
*/
inline GetGroupRequest& WithGroupARN(const Aws::String& value) { SetGroupARN(value); return *this;}
/**
* <p>The ARN of the group that was generated on creation.</p>
*/
inline GetGroupRequest& WithGroupARN(Aws::String&& value) { SetGroupARN(std::move(value)); return *this;}
/**
* <p>The ARN of the group that was generated on creation.</p>
*/
inline GetGroupRequest& WithGroupARN(const char* value) { SetGroupARN(value); return *this;}
private:
Aws::String m_groupName;
bool m_groupNameHasBeenSet;
Aws::String m_groupARN;
bool m_groupARNHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/model/Group.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
class AWS_XRAY_API GetGroupResult
{
public:
GetGroupResult();
GetGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The group that was requested. Contains the name of the group, the ARN of the
* group, and the filter expression that assigned to the group.</p>
*/
inline const Group& GetGroup() const{ return m_group; }
/**
* <p>The group that was requested. Contains the name of the group, the ARN of the
* group, and the filter expression that assigned to the group.</p>
*/
inline void SetGroup(const Group& value) { m_group = value; }
/**
* <p>The group that was requested. Contains the name of the group, the ARN of the
* group, and the filter expression that assigned to the group.</p>
*/
inline void SetGroup(Group&& value) { m_group = std::move(value); }
/**
* <p>The group that was requested. Contains the name of the group, the ARN of the
* group, and the filter expression that assigned to the group.</p>
*/
inline GetGroupResult& WithGroup(const Group& value) { SetGroup(value); return *this;}
/**
* <p>The group that was requested. Contains the name of the group, the ARN of the
* group, and the filter expression that assigned to the group.</p>
*/
inline GetGroupResult& WithGroup(Group&& value) { SetGroup(std::move(value)); return *this;}
private:
Group m_group;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/XRayRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace XRay
{
namespace Model
{
/**
*/
class AWS_XRAY_API GetGroupsRequest : public XRayRequest
{
public:
GetGroupsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "GetGroups"; }
Aws::String SerializePayload() const override;
/**
* <p>Pagination token.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Pagination token.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>Pagination token.</p>
*/
inline GetGroupsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Pagination token.</p>
*/
inline GetGroupsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Pagination token.</p>
*/
inline GetGroupsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/xray/model/GroupSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
class AWS_XRAY_API GetGroupsResult
{
public:
GetGroupsResult();
GetGroupsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetGroupsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The collection of all active groups.</p>
*/
inline const Aws::Vector<GroupSummary>& GetGroups() const{ return m_groups; }
/**
* <p>The collection of all active groups.</p>
*/
inline void SetGroups(const Aws::Vector<GroupSummary>& value) { m_groups = value; }
/**
* <p>The collection of all active groups.</p>
*/
inline void SetGroups(Aws::Vector<GroupSummary>&& value) { m_groups = std::move(value); }
/**
* <p>The collection of all active groups.</p>
*/
inline GetGroupsResult& WithGroups(const Aws::Vector<GroupSummary>& value) { SetGroups(value); return *this;}
/**
* <p>The collection of all active groups.</p>
*/
inline GetGroupsResult& WithGroups(Aws::Vector<GroupSummary>&& value) { SetGroups(std::move(value)); return *this;}
/**
* <p>The collection of all active groups.</p>
*/
inline GetGroupsResult& AddGroups(const GroupSummary& value) { m_groups.push_back(value); return *this; }
/**
* <p>The collection of all active groups.</p>
*/
inline GetGroupsResult& AddGroups(GroupSummary&& value) { m_groups.push_back(std::move(value)); return *this; }
/**
* <p>Pagination token.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>Pagination token.</p>
*/
inline GetGroupsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Pagination token.</p>
*/
inline GetGroupsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Pagination token.</p>
*/
inline GetGroupsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<GroupSummary> m_groups;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/XRayRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace XRay
{
namespace Model
{
/**
*/
class AWS_XRAY_API GetSamplingRulesRequest : public XRayRequest
{
public:
GetSamplingRulesRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "GetSamplingRules"; }
Aws::String SerializePayload() const override;
/**
* <p>Pagination token.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Pagination token.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>Pagination token.</p>
*/
inline GetSamplingRulesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Pagination token.</p>
*/
inline GetSamplingRulesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Pagination token.</p>
*/
inline GetSamplingRulesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/xray/model/SamplingRuleRecord.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
class AWS_XRAY_API GetSamplingRulesResult
{
public:
GetSamplingRulesResult();
GetSamplingRulesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetSamplingRulesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Rule definitions and metadata.</p>
*/
inline const Aws::Vector<SamplingRuleRecord>& GetSamplingRuleRecords() const{ return m_samplingRuleRecords; }
/**
* <p>Rule definitions and metadata.</p>
*/
inline void SetSamplingRuleRecords(const Aws::Vector<SamplingRuleRecord>& value) { m_samplingRuleRecords = value; }
/**
* <p>Rule definitions and metadata.</p>
*/
inline void SetSamplingRuleRecords(Aws::Vector<SamplingRuleRecord>&& value) { m_samplingRuleRecords = std::move(value); }
/**
* <p>Rule definitions and metadata.</p>
*/
inline GetSamplingRulesResult& WithSamplingRuleRecords(const Aws::Vector<SamplingRuleRecord>& value) { SetSamplingRuleRecords(value); return *this;}
/**
* <p>Rule definitions and metadata.</p>
*/
inline GetSamplingRulesResult& WithSamplingRuleRecords(Aws::Vector<SamplingRuleRecord>&& value) { SetSamplingRuleRecords(std::move(value)); return *this;}
/**
* <p>Rule definitions and metadata.</p>
*/
inline GetSamplingRulesResult& AddSamplingRuleRecords(const SamplingRuleRecord& value) { m_samplingRuleRecords.push_back(value); return *this; }
/**
* <p>Rule definitions and metadata.</p>
*/
inline GetSamplingRulesResult& AddSamplingRuleRecords(SamplingRuleRecord&& value) { m_samplingRuleRecords.push_back(std::move(value)); return *this; }
/**
* <p>Pagination token.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>Pagination token.</p>
*/
inline GetSamplingRulesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Pagination token.</p>
*/
inline GetSamplingRulesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Pagination token.</p>
*/
inline GetSamplingRulesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<SamplingRuleRecord> m_samplingRuleRecords;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/XRayRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace XRay
{
namespace Model
{
/**
*/
class AWS_XRAY_API GetSamplingStatisticSummariesRequest : public XRayRequest
{
public:
GetSamplingStatisticSummariesRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "GetSamplingStatisticSummaries"; }
Aws::String SerializePayload() const override;
/**
* <p>Pagination token.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Pagination token.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>Pagination token.</p>
*/
inline GetSamplingStatisticSummariesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Pagination token.</p>
*/
inline GetSamplingStatisticSummariesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Pagination token.</p>
*/
inline GetSamplingStatisticSummariesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/xray/model/SamplingStatisticSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
class AWS_XRAY_API GetSamplingStatisticSummariesResult
{
public:
GetSamplingStatisticSummariesResult();
GetSamplingStatisticSummariesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetSamplingStatisticSummariesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the number of requests instrumented for each sampling
* rule.</p>
*/
inline const Aws::Vector<SamplingStatisticSummary>& GetSamplingStatisticSummaries() const{ return m_samplingStatisticSummaries; }
/**
* <p>Information about the number of requests instrumented for each sampling
* rule.</p>
*/
inline void SetSamplingStatisticSummaries(const Aws::Vector<SamplingStatisticSummary>& value) { m_samplingStatisticSummaries = value; }
/**
* <p>Information about the number of requests instrumented for each sampling
* rule.</p>
*/
inline void SetSamplingStatisticSummaries(Aws::Vector<SamplingStatisticSummary>&& value) { m_samplingStatisticSummaries = std::move(value); }
/**
* <p>Information about the number of requests instrumented for each sampling
* rule.</p>
*/
inline GetSamplingStatisticSummariesResult& WithSamplingStatisticSummaries(const Aws::Vector<SamplingStatisticSummary>& value) { SetSamplingStatisticSummaries(value); return *this;}
/**
* <p>Information about the number of requests instrumented for each sampling
* rule.</p>
*/
inline GetSamplingStatisticSummariesResult& WithSamplingStatisticSummaries(Aws::Vector<SamplingStatisticSummary>&& value) { SetSamplingStatisticSummaries(std::move(value)); return *this;}
/**
* <p>Information about the number of requests instrumented for each sampling
* rule.</p>
*/
inline GetSamplingStatisticSummariesResult& AddSamplingStatisticSummaries(const SamplingStatisticSummary& value) { m_samplingStatisticSummaries.push_back(value); return *this; }
/**
* <p>Information about the number of requests instrumented for each sampling
* rule.</p>
*/
inline GetSamplingStatisticSummariesResult& AddSamplingStatisticSummaries(SamplingStatisticSummary&& value) { m_samplingStatisticSummaries.push_back(std::move(value)); return *this; }
/**
* <p>Pagination token.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>Pagination token.</p>
*/
inline GetSamplingStatisticSummariesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Pagination token.</p>
*/
inline GetSamplingStatisticSummariesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Pagination token.</p>
*/
inline GetSamplingStatisticSummariesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<SamplingStatisticSummary> m_samplingStatisticSummaries;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,84 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/XRayRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/xray/model/SamplingStatisticsDocument.h>
#include <utility>
namespace Aws
{
namespace XRay
{
namespace Model
{
/**
*/
class AWS_XRAY_API GetSamplingTargetsRequest : public XRayRequest
{
public:
GetSamplingTargetsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "GetSamplingTargets"; }
Aws::String SerializePayload() const override;
/**
* <p>Information about rules that the service is using to sample requests.</p>
*/
inline const Aws::Vector<SamplingStatisticsDocument>& GetSamplingStatisticsDocuments() const{ return m_samplingStatisticsDocuments; }
/**
* <p>Information about rules that the service is using to sample requests.</p>
*/
inline bool SamplingStatisticsDocumentsHasBeenSet() const { return m_samplingStatisticsDocumentsHasBeenSet; }
/**
* <p>Information about rules that the service is using to sample requests.</p>
*/
inline void SetSamplingStatisticsDocuments(const Aws::Vector<SamplingStatisticsDocument>& value) { m_samplingStatisticsDocumentsHasBeenSet = true; m_samplingStatisticsDocuments = value; }
/**
* <p>Information about rules that the service is using to sample requests.</p>
*/
inline void SetSamplingStatisticsDocuments(Aws::Vector<SamplingStatisticsDocument>&& value) { m_samplingStatisticsDocumentsHasBeenSet = true; m_samplingStatisticsDocuments = std::move(value); }
/**
* <p>Information about rules that the service is using to sample requests.</p>
*/
inline GetSamplingTargetsRequest& WithSamplingStatisticsDocuments(const Aws::Vector<SamplingStatisticsDocument>& value) { SetSamplingStatisticsDocuments(value); return *this;}
/**
* <p>Information about rules that the service is using to sample requests.</p>
*/
inline GetSamplingTargetsRequest& WithSamplingStatisticsDocuments(Aws::Vector<SamplingStatisticsDocument>&& value) { SetSamplingStatisticsDocuments(std::move(value)); return *this;}
/**
* <p>Information about rules that the service is using to sample requests.</p>
*/
inline GetSamplingTargetsRequest& AddSamplingStatisticsDocuments(const SamplingStatisticsDocument& value) { m_samplingStatisticsDocumentsHasBeenSet = true; m_samplingStatisticsDocuments.push_back(value); return *this; }
/**
* <p>Information about rules that the service is using to sample requests.</p>
*/
inline GetSamplingTargetsRequest& AddSamplingStatisticsDocuments(SamplingStatisticsDocument&& value) { m_samplingStatisticsDocumentsHasBeenSet = true; m_samplingStatisticsDocuments.push_back(std::move(value)); return *this; }
private:
Aws::Vector<SamplingStatisticsDocument> m_samplingStatisticsDocuments;
bool m_samplingStatisticsDocumentsHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,163 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/DateTime.h>
#include <aws/xray/model/SamplingTargetDocument.h>
#include <aws/xray/model/UnprocessedStatistics.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
class AWS_XRAY_API GetSamplingTargetsResult
{
public:
GetSamplingTargetsResult();
GetSamplingTargetsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetSamplingTargetsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Updated rules that the service should use to sample requests.</p>
*/
inline const Aws::Vector<SamplingTargetDocument>& GetSamplingTargetDocuments() const{ return m_samplingTargetDocuments; }
/**
* <p>Updated rules that the service should use to sample requests.</p>
*/
inline void SetSamplingTargetDocuments(const Aws::Vector<SamplingTargetDocument>& value) { m_samplingTargetDocuments = value; }
/**
* <p>Updated rules that the service should use to sample requests.</p>
*/
inline void SetSamplingTargetDocuments(Aws::Vector<SamplingTargetDocument>&& value) { m_samplingTargetDocuments = std::move(value); }
/**
* <p>Updated rules that the service should use to sample requests.</p>
*/
inline GetSamplingTargetsResult& WithSamplingTargetDocuments(const Aws::Vector<SamplingTargetDocument>& value) { SetSamplingTargetDocuments(value); return *this;}
/**
* <p>Updated rules that the service should use to sample requests.</p>
*/
inline GetSamplingTargetsResult& WithSamplingTargetDocuments(Aws::Vector<SamplingTargetDocument>&& value) { SetSamplingTargetDocuments(std::move(value)); return *this;}
/**
* <p>Updated rules that the service should use to sample requests.</p>
*/
inline GetSamplingTargetsResult& AddSamplingTargetDocuments(const SamplingTargetDocument& value) { m_samplingTargetDocuments.push_back(value); return *this; }
/**
* <p>Updated rules that the service should use to sample requests.</p>
*/
inline GetSamplingTargetsResult& AddSamplingTargetDocuments(SamplingTargetDocument&& value) { m_samplingTargetDocuments.push_back(std::move(value)); return *this; }
/**
* <p>The last time a user changed the sampling rule configuration. If the sampling
* rule configuration changed since the service last retrieved it, the service
* should call <a>GetSamplingRules</a> to get the latest version.</p>
*/
inline const Aws::Utils::DateTime& GetLastRuleModification() const{ return m_lastRuleModification; }
/**
* <p>The last time a user changed the sampling rule configuration. If the sampling
* rule configuration changed since the service last retrieved it, the service
* should call <a>GetSamplingRules</a> to get the latest version.</p>
*/
inline void SetLastRuleModification(const Aws::Utils::DateTime& value) { m_lastRuleModification = value; }
/**
* <p>The last time a user changed the sampling rule configuration. If the sampling
* rule configuration changed since the service last retrieved it, the service
* should call <a>GetSamplingRules</a> to get the latest version.</p>
*/
inline void SetLastRuleModification(Aws::Utils::DateTime&& value) { m_lastRuleModification = std::move(value); }
/**
* <p>The last time a user changed the sampling rule configuration. If the sampling
* rule configuration changed since the service last retrieved it, the service
* should call <a>GetSamplingRules</a> to get the latest version.</p>
*/
inline GetSamplingTargetsResult& WithLastRuleModification(const Aws::Utils::DateTime& value) { SetLastRuleModification(value); return *this;}
/**
* <p>The last time a user changed the sampling rule configuration. If the sampling
* rule configuration changed since the service last retrieved it, the service
* should call <a>GetSamplingRules</a> to get the latest version.</p>
*/
inline GetSamplingTargetsResult& WithLastRuleModification(Aws::Utils::DateTime&& value) { SetLastRuleModification(std::move(value)); return *this;}
/**
* <p>Information about <a>SamplingStatisticsDocument</a> that X-Ray could not
* process.</p>
*/
inline const Aws::Vector<UnprocessedStatistics>& GetUnprocessedStatistics() const{ return m_unprocessedStatistics; }
/**
* <p>Information about <a>SamplingStatisticsDocument</a> that X-Ray could not
* process.</p>
*/
inline void SetUnprocessedStatistics(const Aws::Vector<UnprocessedStatistics>& value) { m_unprocessedStatistics = value; }
/**
* <p>Information about <a>SamplingStatisticsDocument</a> that X-Ray could not
* process.</p>
*/
inline void SetUnprocessedStatistics(Aws::Vector<UnprocessedStatistics>&& value) { m_unprocessedStatistics = std::move(value); }
/**
* <p>Information about <a>SamplingStatisticsDocument</a> that X-Ray could not
* process.</p>
*/
inline GetSamplingTargetsResult& WithUnprocessedStatistics(const Aws::Vector<UnprocessedStatistics>& value) { SetUnprocessedStatistics(value); return *this;}
/**
* <p>Information about <a>SamplingStatisticsDocument</a> that X-Ray could not
* process.</p>
*/
inline GetSamplingTargetsResult& WithUnprocessedStatistics(Aws::Vector<UnprocessedStatistics>&& value) { SetUnprocessedStatistics(std::move(value)); return *this;}
/**
* <p>Information about <a>SamplingStatisticsDocument</a> that X-Ray could not
* process.</p>
*/
inline GetSamplingTargetsResult& AddUnprocessedStatistics(const UnprocessedStatistics& value) { m_unprocessedStatistics.push_back(value); return *this; }
/**
* <p>Information about <a>SamplingStatisticsDocument</a> that X-Ray could not
* process.</p>
*/
inline GetSamplingTargetsResult& AddUnprocessedStatistics(UnprocessedStatistics&& value) { m_unprocessedStatistics.push_back(std::move(value)); return *this; }
private:
Aws::Vector<SamplingTargetDocument> m_samplingTargetDocuments;
Aws::Utils::DateTime m_lastRuleModification;
Aws::Vector<UnprocessedStatistics> m_unprocessedStatistics;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,240 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/XRayRequest.h>
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace XRay
{
namespace Model
{
/**
*/
class AWS_XRAY_API GetServiceGraphRequest : public XRayRequest
{
public:
GetServiceGraphRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "GetServiceGraph"; }
Aws::String SerializePayload() const override;
/**
* <p>The start of the time frame for which to generate a graph.</p>
*/
inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
/**
* <p>The start of the time frame for which to generate a graph.</p>
*/
inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
/**
* <p>The start of the time frame for which to generate a graph.</p>
*/
inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
/**
* <p>The start of the time frame for which to generate a graph.</p>
*/
inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
/**
* <p>The start of the time frame for which to generate a graph.</p>
*/
inline GetServiceGraphRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
/**
* <p>The start of the time frame for which to generate a graph.</p>
*/
inline GetServiceGraphRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
/**
* <p>The end of the timeframe for which to generate a graph.</p>
*/
inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
/**
* <p>The end of the timeframe for which to generate a graph.</p>
*/
inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
/**
* <p>The end of the timeframe for which to generate a graph.</p>
*/
inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
/**
* <p>The end of the timeframe for which to generate a graph.</p>
*/
inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
/**
* <p>The end of the timeframe for which to generate a graph.</p>
*/
inline GetServiceGraphRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
/**
* <p>The end of the timeframe for which to generate a graph.</p>
*/
inline GetServiceGraphRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
/**
* <p>The name of a group to generate a graph based on.</p>
*/
inline const Aws::String& GetGroupName() const{ return m_groupName; }
/**
* <p>The name of a group to generate a graph based on.</p>
*/
inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
/**
* <p>The name of a group to generate a graph based on.</p>
*/
inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
/**
* <p>The name of a group to generate a graph based on.</p>
*/
inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
/**
* <p>The name of a group to generate a graph based on.</p>
*/
inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
/**
* <p>The name of a group to generate a graph based on.</p>
*/
inline GetServiceGraphRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
/**
* <p>The name of a group to generate a graph based on.</p>
*/
inline GetServiceGraphRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
/**
* <p>The name of a group to generate a graph based on.</p>
*/
inline GetServiceGraphRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
/**
* <p>The ARN of a group to generate a graph based on.</p>
*/
inline const Aws::String& GetGroupARN() const{ return m_groupARN; }
/**
* <p>The ARN of a group to generate a graph based on.</p>
*/
inline bool GroupARNHasBeenSet() const { return m_groupARNHasBeenSet; }
/**
* <p>The ARN of a group to generate a graph based on.</p>
*/
inline void SetGroupARN(const Aws::String& value) { m_groupARNHasBeenSet = true; m_groupARN = value; }
/**
* <p>The ARN of a group to generate a graph based on.</p>
*/
inline void SetGroupARN(Aws::String&& value) { m_groupARNHasBeenSet = true; m_groupARN = std::move(value); }
/**
* <p>The ARN of a group to generate a graph based on.</p>
*/
inline void SetGroupARN(const char* value) { m_groupARNHasBeenSet = true; m_groupARN.assign(value); }
/**
* <p>The ARN of a group to generate a graph based on.</p>
*/
inline GetServiceGraphRequest& WithGroupARN(const Aws::String& value) { SetGroupARN(value); return *this;}
/**
* <p>The ARN of a group to generate a graph based on.</p>
*/
inline GetServiceGraphRequest& WithGroupARN(Aws::String&& value) { SetGroupARN(std::move(value)); return *this;}
/**
* <p>The ARN of a group to generate a graph based on.</p>
*/
inline GetServiceGraphRequest& WithGroupARN(const char* value) { SetGroupARN(value); return *this;}
/**
* <p>Pagination token.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Pagination token.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>Pagination token.</p>
*/
inline GetServiceGraphRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Pagination token.</p>
*/
inline GetServiceGraphRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Pagination token.</p>
*/
inline GetServiceGraphRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Utils::DateTime m_startTime;
bool m_startTimeHasBeenSet;
Aws::Utils::DateTime m_endTime;
bool m_endTimeHasBeenSet;
Aws::String m_groupName;
bool m_groupNameHasBeenSet;
Aws::String m_groupARN;
bool m_groupARNHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,205 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/xray/model/Service.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
class AWS_XRAY_API GetServiceGraphResult
{
public:
GetServiceGraphResult();
GetServiceGraphResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetServiceGraphResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The start of the time frame for which the graph was generated.</p>
*/
inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
/**
* <p>The start of the time frame for which the graph was generated.</p>
*/
inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTime = value; }
/**
* <p>The start of the time frame for which the graph was generated.</p>
*/
inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTime = std::move(value); }
/**
* <p>The start of the time frame for which the graph was generated.</p>
*/
inline GetServiceGraphResult& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
/**
* <p>The start of the time frame for which the graph was generated.</p>
*/
inline GetServiceGraphResult& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
/**
* <p>The end of the time frame for which the graph was generated.</p>
*/
inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
/**
* <p>The end of the time frame for which the graph was generated.</p>
*/
inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTime = value; }
/**
* <p>The end of the time frame for which the graph was generated.</p>
*/
inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTime = std::move(value); }
/**
* <p>The end of the time frame for which the graph was generated.</p>
*/
inline GetServiceGraphResult& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
/**
* <p>The end of the time frame for which the graph was generated.</p>
*/
inline GetServiceGraphResult& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
/**
* <p>The services that have processed a traced request during the specified time
* frame.</p>
*/
inline const Aws::Vector<Service>& GetServices() const{ return m_services; }
/**
* <p>The services that have processed a traced request during the specified time
* frame.</p>
*/
inline void SetServices(const Aws::Vector<Service>& value) { m_services = value; }
/**
* <p>The services that have processed a traced request during the specified time
* frame.</p>
*/
inline void SetServices(Aws::Vector<Service>&& value) { m_services = std::move(value); }
/**
* <p>The services that have processed a traced request during the specified time
* frame.</p>
*/
inline GetServiceGraphResult& WithServices(const Aws::Vector<Service>& value) { SetServices(value); return *this;}
/**
* <p>The services that have processed a traced request during the specified time
* frame.</p>
*/
inline GetServiceGraphResult& WithServices(Aws::Vector<Service>&& value) { SetServices(std::move(value)); return *this;}
/**
* <p>The services that have processed a traced request during the specified time
* frame.</p>
*/
inline GetServiceGraphResult& AddServices(const Service& value) { m_services.push_back(value); return *this; }
/**
* <p>The services that have processed a traced request during the specified time
* frame.</p>
*/
inline GetServiceGraphResult& AddServices(Service&& value) { m_services.push_back(std::move(value)); return *this; }
/**
* <p>A flag indicating whether the group's filter expression has been consistent,
* or if the returned service graph may show traces from an older version of the
* group's filter expression.</p>
*/
inline bool GetContainsOldGroupVersions() const{ return m_containsOldGroupVersions; }
/**
* <p>A flag indicating whether the group's filter expression has been consistent,
* or if the returned service graph may show traces from an older version of the
* group's filter expression.</p>
*/
inline void SetContainsOldGroupVersions(bool value) { m_containsOldGroupVersions = value; }
/**
* <p>A flag indicating whether the group's filter expression has been consistent,
* or if the returned service graph may show traces from an older version of the
* group's filter expression.</p>
*/
inline GetServiceGraphResult& WithContainsOldGroupVersions(bool value) { SetContainsOldGroupVersions(value); return *this;}
/**
* <p>Pagination token.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>Pagination token.</p>
*/
inline GetServiceGraphResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Pagination token.</p>
*/
inline GetServiceGraphResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Pagination token.</p>
*/
inline GetServiceGraphResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Utils::DateTime m_startTime;
Aws::Utils::DateTime m_endTime;
Aws::Vector<Service> m_services;
bool m_containsOldGroupVersions;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,324 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/XRayRequest.h>
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace XRay
{
namespace Model
{
/**
*/
class AWS_XRAY_API GetTimeSeriesServiceStatisticsRequest : public XRayRequest
{
public:
GetTimeSeriesServiceStatisticsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "GetTimeSeriesServiceStatistics"; }
Aws::String SerializePayload() const override;
/**
* <p>The start of the time frame for which to aggregate statistics.</p>
*/
inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
/**
* <p>The start of the time frame for which to aggregate statistics.</p>
*/
inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
/**
* <p>The start of the time frame for which to aggregate statistics.</p>
*/
inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
/**
* <p>The start of the time frame for which to aggregate statistics.</p>
*/
inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
/**
* <p>The start of the time frame for which to aggregate statistics.</p>
*/
inline GetTimeSeriesServiceStatisticsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
/**
* <p>The start of the time frame for which to aggregate statistics.</p>
*/
inline GetTimeSeriesServiceStatisticsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
/**
* <p>The end of the time frame for which to aggregate statistics.</p>
*/
inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
/**
* <p>The end of the time frame for which to aggregate statistics.</p>
*/
inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
/**
* <p>The end of the time frame for which to aggregate statistics.</p>
*/
inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
/**
* <p>The end of the time frame for which to aggregate statistics.</p>
*/
inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
/**
* <p>The end of the time frame for which to aggregate statistics.</p>
*/
inline GetTimeSeriesServiceStatisticsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
/**
* <p>The end of the time frame for which to aggregate statistics.</p>
*/
inline GetTimeSeriesServiceStatisticsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
/**
* <p>The case-sensitive name of the group for which to pull statistics from.</p>
*/
inline const Aws::String& GetGroupName() const{ return m_groupName; }
/**
* <p>The case-sensitive name of the group for which to pull statistics from.</p>
*/
inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
/**
* <p>The case-sensitive name of the group for which to pull statistics from.</p>
*/
inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
/**
* <p>The case-sensitive name of the group for which to pull statistics from.</p>
*/
inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
/**
* <p>The case-sensitive name of the group for which to pull statistics from.</p>
*/
inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
/**
* <p>The case-sensitive name of the group for which to pull statistics from.</p>
*/
inline GetTimeSeriesServiceStatisticsRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
/**
* <p>The case-sensitive name of the group for which to pull statistics from.</p>
*/
inline GetTimeSeriesServiceStatisticsRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
/**
* <p>The case-sensitive name of the group for which to pull statistics from.</p>
*/
inline GetTimeSeriesServiceStatisticsRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
/**
* <p>The ARN of the group for which to pull statistics from.</p>
*/
inline const Aws::String& GetGroupARN() const{ return m_groupARN; }
/**
* <p>The ARN of the group for which to pull statistics from.</p>
*/
inline bool GroupARNHasBeenSet() const { return m_groupARNHasBeenSet; }
/**
* <p>The ARN of the group for which to pull statistics from.</p>
*/
inline void SetGroupARN(const Aws::String& value) { m_groupARNHasBeenSet = true; m_groupARN = value; }
/**
* <p>The ARN of the group for which to pull statistics from.</p>
*/
inline void SetGroupARN(Aws::String&& value) { m_groupARNHasBeenSet = true; m_groupARN = std::move(value); }
/**
* <p>The ARN of the group for which to pull statistics from.</p>
*/
inline void SetGroupARN(const char* value) { m_groupARNHasBeenSet = true; m_groupARN.assign(value); }
/**
* <p>The ARN of the group for which to pull statistics from.</p>
*/
inline GetTimeSeriesServiceStatisticsRequest& WithGroupARN(const Aws::String& value) { SetGroupARN(value); return *this;}
/**
* <p>The ARN of the group for which to pull statistics from.</p>
*/
inline GetTimeSeriesServiceStatisticsRequest& WithGroupARN(Aws::String&& value) { SetGroupARN(std::move(value)); return *this;}
/**
* <p>The ARN of the group for which to pull statistics from.</p>
*/
inline GetTimeSeriesServiceStatisticsRequest& WithGroupARN(const char* value) { SetGroupARN(value); return *this;}
/**
* <p>A filter expression defining entities that will be aggregated for statistics.
* Supports ID, service, and edge functions. If no selector expression is
* specified, edge statistics are returned. </p>
*/
inline const Aws::String& GetEntitySelectorExpression() const{ return m_entitySelectorExpression; }
/**
* <p>A filter expression defining entities that will be aggregated for statistics.
* Supports ID, service, and edge functions. If no selector expression is
* specified, edge statistics are returned. </p>
*/
inline bool EntitySelectorExpressionHasBeenSet() const { return m_entitySelectorExpressionHasBeenSet; }
/**
* <p>A filter expression defining entities that will be aggregated for statistics.
* Supports ID, service, and edge functions. If no selector expression is
* specified, edge statistics are returned. </p>
*/
inline void SetEntitySelectorExpression(const Aws::String& value) { m_entitySelectorExpressionHasBeenSet = true; m_entitySelectorExpression = value; }
/**
* <p>A filter expression defining entities that will be aggregated for statistics.
* Supports ID, service, and edge functions. If no selector expression is
* specified, edge statistics are returned. </p>
*/
inline void SetEntitySelectorExpression(Aws::String&& value) { m_entitySelectorExpressionHasBeenSet = true; m_entitySelectorExpression = std::move(value); }
/**
* <p>A filter expression defining entities that will be aggregated for statistics.
* Supports ID, service, and edge functions. If no selector expression is
* specified, edge statistics are returned. </p>
*/
inline void SetEntitySelectorExpression(const char* value) { m_entitySelectorExpressionHasBeenSet = true; m_entitySelectorExpression.assign(value); }
/**
* <p>A filter expression defining entities that will be aggregated for statistics.
* Supports ID, service, and edge functions. If no selector expression is
* specified, edge statistics are returned. </p>
*/
inline GetTimeSeriesServiceStatisticsRequest& WithEntitySelectorExpression(const Aws::String& value) { SetEntitySelectorExpression(value); return *this;}
/**
* <p>A filter expression defining entities that will be aggregated for statistics.
* Supports ID, service, and edge functions. If no selector expression is
* specified, edge statistics are returned. </p>
*/
inline GetTimeSeriesServiceStatisticsRequest& WithEntitySelectorExpression(Aws::String&& value) { SetEntitySelectorExpression(std::move(value)); return *this;}
/**
* <p>A filter expression defining entities that will be aggregated for statistics.
* Supports ID, service, and edge functions. If no selector expression is
* specified, edge statistics are returned. </p>
*/
inline GetTimeSeriesServiceStatisticsRequest& WithEntitySelectorExpression(const char* value) { SetEntitySelectorExpression(value); return *this;}
/**
* <p>Aggregation period in seconds.</p>
*/
inline int GetPeriod() const{ return m_period; }
/**
* <p>Aggregation period in seconds.</p>
*/
inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
/**
* <p>Aggregation period in seconds.</p>
*/
inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
/**
* <p>Aggregation period in seconds.</p>
*/
inline GetTimeSeriesServiceStatisticsRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
/**
* <p>Pagination token.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Pagination token.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>Pagination token.</p>
*/
inline GetTimeSeriesServiceStatisticsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Pagination token.</p>
*/
inline GetTimeSeriesServiceStatisticsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Pagination token.</p>
*/
inline GetTimeSeriesServiceStatisticsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Utils::DateTime m_startTime;
bool m_startTimeHasBeenSet;
Aws::Utils::DateTime m_endTime;
bool m_endTimeHasBeenSet;
Aws::String m_groupName;
bool m_groupNameHasBeenSet;
Aws::String m_groupARN;
bool m_groupARNHasBeenSet;
Aws::String m_entitySelectorExpression;
bool m_entitySelectorExpressionHasBeenSet;
int m_period;
bool m_periodHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,141 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/xray/model/TimeSeriesServiceStatistics.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
class AWS_XRAY_API GetTimeSeriesServiceStatisticsResult
{
public:
GetTimeSeriesServiceStatisticsResult();
GetTimeSeriesServiceStatisticsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetTimeSeriesServiceStatisticsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The collection of statistics.</p>
*/
inline const Aws::Vector<TimeSeriesServiceStatistics>& GetTimeSeriesServiceStatistics() const{ return m_timeSeriesServiceStatistics; }
/**
* <p>The collection of statistics.</p>
*/
inline void SetTimeSeriesServiceStatistics(const Aws::Vector<TimeSeriesServiceStatistics>& value) { m_timeSeriesServiceStatistics = value; }
/**
* <p>The collection of statistics.</p>
*/
inline void SetTimeSeriesServiceStatistics(Aws::Vector<TimeSeriesServiceStatistics>&& value) { m_timeSeriesServiceStatistics = std::move(value); }
/**
* <p>The collection of statistics.</p>
*/
inline GetTimeSeriesServiceStatisticsResult& WithTimeSeriesServiceStatistics(const Aws::Vector<TimeSeriesServiceStatistics>& value) { SetTimeSeriesServiceStatistics(value); return *this;}
/**
* <p>The collection of statistics.</p>
*/
inline GetTimeSeriesServiceStatisticsResult& WithTimeSeriesServiceStatistics(Aws::Vector<TimeSeriesServiceStatistics>&& value) { SetTimeSeriesServiceStatistics(std::move(value)); return *this;}
/**
* <p>The collection of statistics.</p>
*/
inline GetTimeSeriesServiceStatisticsResult& AddTimeSeriesServiceStatistics(const TimeSeriesServiceStatistics& value) { m_timeSeriesServiceStatistics.push_back(value); return *this; }
/**
* <p>The collection of statistics.</p>
*/
inline GetTimeSeriesServiceStatisticsResult& AddTimeSeriesServiceStatistics(TimeSeriesServiceStatistics&& value) { m_timeSeriesServiceStatistics.push_back(std::move(value)); return *this; }
/**
* <p>A flag indicating whether or not a group's filter expression has been
* consistent, or if a returned aggregation may show statistics from an older
* version of the group's filter expression.</p>
*/
inline bool GetContainsOldGroupVersions() const{ return m_containsOldGroupVersions; }
/**
* <p>A flag indicating whether or not a group's filter expression has been
* consistent, or if a returned aggregation may show statistics from an older
* version of the group's filter expression.</p>
*/
inline void SetContainsOldGroupVersions(bool value) { m_containsOldGroupVersions = value; }
/**
* <p>A flag indicating whether or not a group's filter expression has been
* consistent, or if a returned aggregation may show statistics from an older
* version of the group's filter expression.</p>
*/
inline GetTimeSeriesServiceStatisticsResult& WithContainsOldGroupVersions(bool value) { SetContainsOldGroupVersions(value); return *this;}
/**
* <p>Pagination token.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>Pagination token.</p>
*/
inline GetTimeSeriesServiceStatisticsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Pagination token.</p>
*/
inline GetTimeSeriesServiceStatisticsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Pagination token.</p>
*/
inline GetTimeSeriesServiceStatisticsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<TimeSeriesServiceStatistics> m_timeSeriesServiceStatistics;
bool m_containsOldGroupVersions;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,133 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/XRayRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace XRay
{
namespace Model
{
/**
*/
class AWS_XRAY_API GetTraceGraphRequest : public XRayRequest
{
public:
GetTraceGraphRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "GetTraceGraph"; }
Aws::String SerializePayload() const override;
/**
* <p>Trace IDs of requests for which to generate a service graph.</p>
*/
inline const Aws::Vector<Aws::String>& GetTraceIds() const{ return m_traceIds; }
/**
* <p>Trace IDs of requests for which to generate a service graph.</p>
*/
inline bool TraceIdsHasBeenSet() const { return m_traceIdsHasBeenSet; }
/**
* <p>Trace IDs of requests for which to generate a service graph.</p>
*/
inline void SetTraceIds(const Aws::Vector<Aws::String>& value) { m_traceIdsHasBeenSet = true; m_traceIds = value; }
/**
* <p>Trace IDs of requests for which to generate a service graph.</p>
*/
inline void SetTraceIds(Aws::Vector<Aws::String>&& value) { m_traceIdsHasBeenSet = true; m_traceIds = std::move(value); }
/**
* <p>Trace IDs of requests for which to generate a service graph.</p>
*/
inline GetTraceGraphRequest& WithTraceIds(const Aws::Vector<Aws::String>& value) { SetTraceIds(value); return *this;}
/**
* <p>Trace IDs of requests for which to generate a service graph.</p>
*/
inline GetTraceGraphRequest& WithTraceIds(Aws::Vector<Aws::String>&& value) { SetTraceIds(std::move(value)); return *this;}
/**
* <p>Trace IDs of requests for which to generate a service graph.</p>
*/
inline GetTraceGraphRequest& AddTraceIds(const Aws::String& value) { m_traceIdsHasBeenSet = true; m_traceIds.push_back(value); return *this; }
/**
* <p>Trace IDs of requests for which to generate a service graph.</p>
*/
inline GetTraceGraphRequest& AddTraceIds(Aws::String&& value) { m_traceIdsHasBeenSet = true; m_traceIds.push_back(std::move(value)); return *this; }
/**
* <p>Trace IDs of requests for which to generate a service graph.</p>
*/
inline GetTraceGraphRequest& AddTraceIds(const char* value) { m_traceIdsHasBeenSet = true; m_traceIds.push_back(value); return *this; }
/**
* <p>Pagination token.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Pagination token.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>Pagination token.</p>
*/
inline GetTraceGraphRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Pagination token.</p>
*/
inline GetTraceGraphRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Pagination token.</p>
*/
inline GetTraceGraphRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Aws::String> m_traceIds;
bool m_traceIdsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/xray/model/Service.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
class AWS_XRAY_API GetTraceGraphResult
{
public:
GetTraceGraphResult();
GetTraceGraphResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetTraceGraphResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The services that have processed one of the specified requests.</p>
*/
inline const Aws::Vector<Service>& GetServices() const{ return m_services; }
/**
* <p>The services that have processed one of the specified requests.</p>
*/
inline void SetServices(const Aws::Vector<Service>& value) { m_services = value; }
/**
* <p>The services that have processed one of the specified requests.</p>
*/
inline void SetServices(Aws::Vector<Service>&& value) { m_services = std::move(value); }
/**
* <p>The services that have processed one of the specified requests.</p>
*/
inline GetTraceGraphResult& WithServices(const Aws::Vector<Service>& value) { SetServices(value); return *this;}
/**
* <p>The services that have processed one of the specified requests.</p>
*/
inline GetTraceGraphResult& WithServices(Aws::Vector<Service>&& value) { SetServices(std::move(value)); return *this;}
/**
* <p>The services that have processed one of the specified requests.</p>
*/
inline GetTraceGraphResult& AddServices(const Service& value) { m_services.push_back(value); return *this; }
/**
* <p>The services that have processed one of the specified requests.</p>
*/
inline GetTraceGraphResult& AddServices(Service&& value) { m_services.push_back(std::move(value)); return *this; }
/**
* <p>Pagination token.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>Pagination token.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>Pagination token.</p>
*/
inline GetTraceGraphResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Pagination token.</p>
*/
inline GetTraceGraphResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Pagination token.</p>
*/
inline GetTraceGraphResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Service> m_services;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,322 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/XRayRequest.h>
#include <aws/core/utils/DateTime.h>
#include <aws/xray/model/TimeRangeType.h>
#include <aws/xray/model/SamplingStrategy.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace XRay
{
namespace Model
{
/**
*/
class AWS_XRAY_API GetTraceSummariesRequest : public XRayRequest
{
public:
GetTraceSummariesRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "GetTraceSummaries"; }
Aws::String SerializePayload() const override;
/**
* <p>The start of the time frame for which to retrieve traces.</p>
*/
inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
/**
* <p>The start of the time frame for which to retrieve traces.</p>
*/
inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
/**
* <p>The start of the time frame for which to retrieve traces.</p>
*/
inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
/**
* <p>The start of the time frame for which to retrieve traces.</p>
*/
inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
/**
* <p>The start of the time frame for which to retrieve traces.</p>
*/
inline GetTraceSummariesRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
/**
* <p>The start of the time frame for which to retrieve traces.</p>
*/
inline GetTraceSummariesRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
/**
* <p>The end of the time frame for which to retrieve traces.</p>
*/
inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
/**
* <p>The end of the time frame for which to retrieve traces.</p>
*/
inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
/**
* <p>The end of the time frame for which to retrieve traces.</p>
*/
inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
/**
* <p>The end of the time frame for which to retrieve traces.</p>
*/
inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
/**
* <p>The end of the time frame for which to retrieve traces.</p>
*/
inline GetTraceSummariesRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
/**
* <p>The end of the time frame for which to retrieve traces.</p>
*/
inline GetTraceSummariesRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
/**
* <p>A parameter to indicate whether to query trace summaries by TraceId or Event
* time.</p>
*/
inline const TimeRangeType& GetTimeRangeType() const{ return m_timeRangeType; }
/**
* <p>A parameter to indicate whether to query trace summaries by TraceId or Event
* time.</p>
*/
inline bool TimeRangeTypeHasBeenSet() const { return m_timeRangeTypeHasBeenSet; }
/**
* <p>A parameter to indicate whether to query trace summaries by TraceId or Event
* time.</p>
*/
inline void SetTimeRangeType(const TimeRangeType& value) { m_timeRangeTypeHasBeenSet = true; m_timeRangeType = value; }
/**
* <p>A parameter to indicate whether to query trace summaries by TraceId or Event
* time.</p>
*/
inline void SetTimeRangeType(TimeRangeType&& value) { m_timeRangeTypeHasBeenSet = true; m_timeRangeType = std::move(value); }
/**
* <p>A parameter to indicate whether to query trace summaries by TraceId or Event
* time.</p>
*/
inline GetTraceSummariesRequest& WithTimeRangeType(const TimeRangeType& value) { SetTimeRangeType(value); return *this;}
/**
* <p>A parameter to indicate whether to query trace summaries by TraceId or Event
* time.</p>
*/
inline GetTraceSummariesRequest& WithTimeRangeType(TimeRangeType&& value) { SetTimeRangeType(std::move(value)); return *this;}
/**
* <p>Set to <code>true</code> to get summaries for only a subset of available
* traces.</p>
*/
inline bool GetSampling() const{ return m_sampling; }
/**
* <p>Set to <code>true</code> to get summaries for only a subset of available
* traces.</p>
*/
inline bool SamplingHasBeenSet() const { return m_samplingHasBeenSet; }
/**
* <p>Set to <code>true</code> to get summaries for only a subset of available
* traces.</p>
*/
inline void SetSampling(bool value) { m_samplingHasBeenSet = true; m_sampling = value; }
/**
* <p>Set to <code>true</code> to get summaries for only a subset of available
* traces.</p>
*/
inline GetTraceSummariesRequest& WithSampling(bool value) { SetSampling(value); return *this;}
/**
* <p>A paramater to indicate whether to enable sampling on trace summaries. Input
* parameters are Name and Value.</p>
*/
inline const SamplingStrategy& GetSamplingStrategy() const{ return m_samplingStrategy; }
/**
* <p>A paramater to indicate whether to enable sampling on trace summaries. Input
* parameters are Name and Value.</p>
*/
inline bool SamplingStrategyHasBeenSet() const { return m_samplingStrategyHasBeenSet; }
/**
* <p>A paramater to indicate whether to enable sampling on trace summaries. Input
* parameters are Name and Value.</p>
*/
inline void SetSamplingStrategy(const SamplingStrategy& value) { m_samplingStrategyHasBeenSet = true; m_samplingStrategy = value; }
/**
* <p>A paramater to indicate whether to enable sampling on trace summaries. Input
* parameters are Name and Value.</p>
*/
inline void SetSamplingStrategy(SamplingStrategy&& value) { m_samplingStrategyHasBeenSet = true; m_samplingStrategy = std::move(value); }
/**
* <p>A paramater to indicate whether to enable sampling on trace summaries. Input
* parameters are Name and Value.</p>
*/
inline GetTraceSummariesRequest& WithSamplingStrategy(const SamplingStrategy& value) { SetSamplingStrategy(value); return *this;}
/**
* <p>A paramater to indicate whether to enable sampling on trace summaries. Input
* parameters are Name and Value.</p>
*/
inline GetTraceSummariesRequest& WithSamplingStrategy(SamplingStrategy&& value) { SetSamplingStrategy(std::move(value)); return *this;}
/**
* <p>Specify a filter expression to retrieve trace summaries for services or
* requests that meet certain requirements.</p>
*/
inline const Aws::String& GetFilterExpression() const{ return m_filterExpression; }
/**
* <p>Specify a filter expression to retrieve trace summaries for services or
* requests that meet certain requirements.</p>
*/
inline bool FilterExpressionHasBeenSet() const { return m_filterExpressionHasBeenSet; }
/**
* <p>Specify a filter expression to retrieve trace summaries for services or
* requests that meet certain requirements.</p>
*/
inline void SetFilterExpression(const Aws::String& value) { m_filterExpressionHasBeenSet = true; m_filterExpression = value; }
/**
* <p>Specify a filter expression to retrieve trace summaries for services or
* requests that meet certain requirements.</p>
*/
inline void SetFilterExpression(Aws::String&& value) { m_filterExpressionHasBeenSet = true; m_filterExpression = std::move(value); }
/**
* <p>Specify a filter expression to retrieve trace summaries for services or
* requests that meet certain requirements.</p>
*/
inline void SetFilterExpression(const char* value) { m_filterExpressionHasBeenSet = true; m_filterExpression.assign(value); }
/**
* <p>Specify a filter expression to retrieve trace summaries for services or
* requests that meet certain requirements.</p>
*/
inline GetTraceSummariesRequest& WithFilterExpression(const Aws::String& value) { SetFilterExpression(value); return *this;}
/**
* <p>Specify a filter expression to retrieve trace summaries for services or
* requests that meet certain requirements.</p>
*/
inline GetTraceSummariesRequest& WithFilterExpression(Aws::String&& value) { SetFilterExpression(std::move(value)); return *this;}
/**
* <p>Specify a filter expression to retrieve trace summaries for services or
* requests that meet certain requirements.</p>
*/
inline GetTraceSummariesRequest& WithFilterExpression(const char* value) { SetFilterExpression(value); return *this;}
/**
* <p>Specify the pagination token returned by a previous request to retrieve the
* next page of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Specify the pagination token returned by a previous request to retrieve the
* next page of results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>Specify the pagination token returned by a previous request to retrieve the
* next page of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>Specify the pagination token returned by a previous request to retrieve the
* next page of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>Specify the pagination token returned by a previous request to retrieve the
* next page of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>Specify the pagination token returned by a previous request to retrieve the
* next page of results.</p>
*/
inline GetTraceSummariesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Specify the pagination token returned by a previous request to retrieve the
* next page of results.</p>
*/
inline GetTraceSummariesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Specify the pagination token returned by a previous request to retrieve the
* next page of results.</p>
*/
inline GetTraceSummariesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Utils::DateTime m_startTime;
bool m_startTimeHasBeenSet;
Aws::Utils::DateTime m_endTime;
bool m_endTimeHasBeenSet;
TimeRangeType m_timeRangeType;
bool m_timeRangeTypeHasBeenSet;
bool m_sampling;
bool m_samplingHasBeenSet;
SamplingStrategy m_samplingStrategy;
bool m_samplingStrategyHasBeenSet;
Aws::String m_filterExpression;
bool m_filterExpressionHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,188 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/xray/model/TraceSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
class AWS_XRAY_API GetTraceSummariesResult
{
public:
GetTraceSummariesResult();
GetTraceSummariesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetTraceSummariesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Trace IDs and annotations for traces that were found in the specified time
* frame.</p>
*/
inline const Aws::Vector<TraceSummary>& GetTraceSummaries() const{ return m_traceSummaries; }
/**
* <p>Trace IDs and annotations for traces that were found in the specified time
* frame.</p>
*/
inline void SetTraceSummaries(const Aws::Vector<TraceSummary>& value) { m_traceSummaries = value; }
/**
* <p>Trace IDs and annotations for traces that were found in the specified time
* frame.</p>
*/
inline void SetTraceSummaries(Aws::Vector<TraceSummary>&& value) { m_traceSummaries = std::move(value); }
/**
* <p>Trace IDs and annotations for traces that were found in the specified time
* frame.</p>
*/
inline GetTraceSummariesResult& WithTraceSummaries(const Aws::Vector<TraceSummary>& value) { SetTraceSummaries(value); return *this;}
/**
* <p>Trace IDs and annotations for traces that were found in the specified time
* frame.</p>
*/
inline GetTraceSummariesResult& WithTraceSummaries(Aws::Vector<TraceSummary>&& value) { SetTraceSummaries(std::move(value)); return *this;}
/**
* <p>Trace IDs and annotations for traces that were found in the specified time
* frame.</p>
*/
inline GetTraceSummariesResult& AddTraceSummaries(const TraceSummary& value) { m_traceSummaries.push_back(value); return *this; }
/**
* <p>Trace IDs and annotations for traces that were found in the specified time
* frame.</p>
*/
inline GetTraceSummariesResult& AddTraceSummaries(TraceSummary&& value) { m_traceSummaries.push_back(std::move(value)); return *this; }
/**
* <p>The start time of this page of results.</p>
*/
inline const Aws::Utils::DateTime& GetApproximateTime() const{ return m_approximateTime; }
/**
* <p>The start time of this page of results.</p>
*/
inline void SetApproximateTime(const Aws::Utils::DateTime& value) { m_approximateTime = value; }
/**
* <p>The start time of this page of results.</p>
*/
inline void SetApproximateTime(Aws::Utils::DateTime&& value) { m_approximateTime = std::move(value); }
/**
* <p>The start time of this page of results.</p>
*/
inline GetTraceSummariesResult& WithApproximateTime(const Aws::Utils::DateTime& value) { SetApproximateTime(value); return *this;}
/**
* <p>The start time of this page of results.</p>
*/
inline GetTraceSummariesResult& WithApproximateTime(Aws::Utils::DateTime&& value) { SetApproximateTime(std::move(value)); return *this;}
/**
* <p>The total number of traces processed, including traces that did not match the
* specified filter expression.</p>
*/
inline long long GetTracesProcessedCount() const{ return m_tracesProcessedCount; }
/**
* <p>The total number of traces processed, including traces that did not match the
* specified filter expression.</p>
*/
inline void SetTracesProcessedCount(long long value) { m_tracesProcessedCount = value; }
/**
* <p>The total number of traces processed, including traces that did not match the
* specified filter expression.</p>
*/
inline GetTraceSummariesResult& WithTracesProcessedCount(long long value) { SetTracesProcessedCount(value); return *this;}
/**
* <p>If the requested time frame contained more than one page of results, you can
* use this token to retrieve the next page. The first page contains the most most
* recent results, closest to the end of the time frame.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If the requested time frame contained more than one page of results, you can
* use this token to retrieve the next page. The first page contains the most most
* recent results, closest to the end of the time frame.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If the requested time frame contained more than one page of results, you can
* use this token to retrieve the next page. The first page contains the most most
* recent results, closest to the end of the time frame.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If the requested time frame contained more than one page of results, you can
* use this token to retrieve the next page. The first page contains the most most
* recent results, closest to the end of the time frame.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If the requested time frame contained more than one page of results, you can
* use this token to retrieve the next page. The first page contains the most most
* recent results, closest to the end of the time frame.</p>
*/
inline GetTraceSummariesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If the requested time frame contained more than one page of results, you can
* use this token to retrieve the next page. The first page contains the most most
* recent results, closest to the end of the time frame.</p>
*/
inline GetTraceSummariesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If the requested time frame contained more than one page of results, you can
* use this token to retrieve the next page. The first page contains the most most
* recent results, closest to the end of the time frame.</p>
*/
inline GetTraceSummariesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<TraceSummary> m_traceSummaries;
Aws::Utils::DateTime m_approximateTime;
long long m_tracesProcessedCount;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,176 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_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 XRay
{
namespace Model
{
/**
* <p>Details and metadata for a group.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/Group">AWS API
* Reference</a></p>
*/
class AWS_XRAY_API Group
{
public:
Group();
Group(Aws::Utils::Json::JsonView jsonValue);
Group& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The unique case-sensitive name of the group.</p>
*/
inline const Aws::String& GetGroupName() const{ return m_groupName; }
/**
* <p>The unique case-sensitive name of the group.</p>
*/
inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
/**
* <p>The unique case-sensitive name of the group.</p>
*/
inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
/**
* <p>The unique case-sensitive name of the group.</p>
*/
inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
/**
* <p>The unique case-sensitive name of the group.</p>
*/
inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
/**
* <p>The unique case-sensitive name of the group.</p>
*/
inline Group& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
/**
* <p>The unique case-sensitive name of the group.</p>
*/
inline Group& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
/**
* <p>The unique case-sensitive name of the group.</p>
*/
inline Group& WithGroupName(const char* value) { SetGroupName(value); return *this;}
/**
* <p>The ARN of the group generated based on the GroupName.</p>
*/
inline const Aws::String& GetGroupARN() const{ return m_groupARN; }
/**
* <p>The ARN of the group generated based on the GroupName.</p>
*/
inline bool GroupARNHasBeenSet() const { return m_groupARNHasBeenSet; }
/**
* <p>The ARN of the group generated based on the GroupName.</p>
*/
inline void SetGroupARN(const Aws::String& value) { m_groupARNHasBeenSet = true; m_groupARN = value; }
/**
* <p>The ARN of the group generated based on the GroupName.</p>
*/
inline void SetGroupARN(Aws::String&& value) { m_groupARNHasBeenSet = true; m_groupARN = std::move(value); }
/**
* <p>The ARN of the group generated based on the GroupName.</p>
*/
inline void SetGroupARN(const char* value) { m_groupARNHasBeenSet = true; m_groupARN.assign(value); }
/**
* <p>The ARN of the group generated based on the GroupName.</p>
*/
inline Group& WithGroupARN(const Aws::String& value) { SetGroupARN(value); return *this;}
/**
* <p>The ARN of the group generated based on the GroupName.</p>
*/
inline Group& WithGroupARN(Aws::String&& value) { SetGroupARN(std::move(value)); return *this;}
/**
* <p>The ARN of the group generated based on the GroupName.</p>
*/
inline Group& WithGroupARN(const char* value) { SetGroupARN(value); return *this;}
/**
* <p>The filter expression defining the parameters to include traces.</p>
*/
inline const Aws::String& GetFilterExpression() const{ return m_filterExpression; }
/**
* <p>The filter expression defining the parameters to include traces.</p>
*/
inline bool FilterExpressionHasBeenSet() const { return m_filterExpressionHasBeenSet; }
/**
* <p>The filter expression defining the parameters to include traces.</p>
*/
inline void SetFilterExpression(const Aws::String& value) { m_filterExpressionHasBeenSet = true; m_filterExpression = value; }
/**
* <p>The filter expression defining the parameters to include traces.</p>
*/
inline void SetFilterExpression(Aws::String&& value) { m_filterExpressionHasBeenSet = true; m_filterExpression = std::move(value); }
/**
* <p>The filter expression defining the parameters to include traces.</p>
*/
inline void SetFilterExpression(const char* value) { m_filterExpressionHasBeenSet = true; m_filterExpression.assign(value); }
/**
* <p>The filter expression defining the parameters to include traces.</p>
*/
inline Group& WithFilterExpression(const Aws::String& value) { SetFilterExpression(value); return *this;}
/**
* <p>The filter expression defining the parameters to include traces.</p>
*/
inline Group& WithFilterExpression(Aws::String&& value) { SetFilterExpression(std::move(value)); return *this;}
/**
* <p>The filter expression defining the parameters to include traces.</p>
*/
inline Group& WithFilterExpression(const char* value) { SetFilterExpression(value); return *this;}
private:
Aws::String m_groupName;
bool m_groupNameHasBeenSet;
Aws::String m_groupARN;
bool m_groupARNHasBeenSet;
Aws::String m_filterExpression;
bool m_filterExpressionHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,176 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_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 XRay
{
namespace Model
{
/**
* <p>Details for a group without metadata.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GroupSummary">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API GroupSummary
{
public:
GroupSummary();
GroupSummary(Aws::Utils::Json::JsonView jsonValue);
GroupSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The unique case-sensitive name of the group.</p>
*/
inline const Aws::String& GetGroupName() const{ return m_groupName; }
/**
* <p>The unique case-sensitive name of the group.</p>
*/
inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
/**
* <p>The unique case-sensitive name of the group.</p>
*/
inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
/**
* <p>The unique case-sensitive name of the group.</p>
*/
inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
/**
* <p>The unique case-sensitive name of the group.</p>
*/
inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
/**
* <p>The unique case-sensitive name of the group.</p>
*/
inline GroupSummary& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
/**
* <p>The unique case-sensitive name of the group.</p>
*/
inline GroupSummary& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
/**
* <p>The unique case-sensitive name of the group.</p>
*/
inline GroupSummary& WithGroupName(const char* value) { SetGroupName(value); return *this;}
/**
* <p>The ARN of the group generated based on the GroupName.</p>
*/
inline const Aws::String& GetGroupARN() const{ return m_groupARN; }
/**
* <p>The ARN of the group generated based on the GroupName.</p>
*/
inline bool GroupARNHasBeenSet() const { return m_groupARNHasBeenSet; }
/**
* <p>The ARN of the group generated based on the GroupName.</p>
*/
inline void SetGroupARN(const Aws::String& value) { m_groupARNHasBeenSet = true; m_groupARN = value; }
/**
* <p>The ARN of the group generated based on the GroupName.</p>
*/
inline void SetGroupARN(Aws::String&& value) { m_groupARNHasBeenSet = true; m_groupARN = std::move(value); }
/**
* <p>The ARN of the group generated based on the GroupName.</p>
*/
inline void SetGroupARN(const char* value) { m_groupARNHasBeenSet = true; m_groupARN.assign(value); }
/**
* <p>The ARN of the group generated based on the GroupName.</p>
*/
inline GroupSummary& WithGroupARN(const Aws::String& value) { SetGroupARN(value); return *this;}
/**
* <p>The ARN of the group generated based on the GroupName.</p>
*/
inline GroupSummary& WithGroupARN(Aws::String&& value) { SetGroupARN(std::move(value)); return *this;}
/**
* <p>The ARN of the group generated based on the GroupName.</p>
*/
inline GroupSummary& WithGroupARN(const char* value) { SetGroupARN(value); return *this;}
/**
* <p>The filter expression defining the parameters to include traces.</p>
*/
inline const Aws::String& GetFilterExpression() const{ return m_filterExpression; }
/**
* <p>The filter expression defining the parameters to include traces.</p>
*/
inline bool FilterExpressionHasBeenSet() const { return m_filterExpressionHasBeenSet; }
/**
* <p>The filter expression defining the parameters to include traces.</p>
*/
inline void SetFilterExpression(const Aws::String& value) { m_filterExpressionHasBeenSet = true; m_filterExpression = value; }
/**
* <p>The filter expression defining the parameters to include traces.</p>
*/
inline void SetFilterExpression(Aws::String&& value) { m_filterExpressionHasBeenSet = true; m_filterExpression = std::move(value); }
/**
* <p>The filter expression defining the parameters to include traces.</p>
*/
inline void SetFilterExpression(const char* value) { m_filterExpressionHasBeenSet = true; m_filterExpression.assign(value); }
/**
* <p>The filter expression defining the parameters to include traces.</p>
*/
inline GroupSummary& WithFilterExpression(const Aws::String& value) { SetFilterExpression(value); return *this;}
/**
* <p>The filter expression defining the parameters to include traces.</p>
*/
inline GroupSummary& WithFilterExpression(Aws::String&& value) { SetFilterExpression(std::move(value)); return *this;}
/**
* <p>The filter expression defining the parameters to include traces.</p>
*/
inline GroupSummary& WithFilterExpression(const char* value) { SetFilterExpression(value); return *this;}
private:
Aws::String m_groupName;
bool m_groupNameHasBeenSet;
Aws::String m_groupARN;
bool m_groupARNHasBeenSet;
Aws::String m_filterExpression;
bool m_filterExpressionHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,92 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>An entry in a histogram for a statistic. A histogram maps the range of
* observed values on the X axis, and the prevalence of each value on the Y
* axis.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/HistogramEntry">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API HistogramEntry
{
public:
HistogramEntry();
HistogramEntry(Aws::Utils::Json::JsonView jsonValue);
HistogramEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The value of the entry.</p>
*/
inline double GetValue() const{ return m_value; }
/**
* <p>The value of the entry.</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The value of the entry.</p>
*/
inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The value of the entry.</p>
*/
inline HistogramEntry& WithValue(double value) { SetValue(value); return *this;}
/**
* <p>The prevalence of the entry.</p>
*/
inline int GetCount() const{ return m_count; }
/**
* <p>The prevalence of the entry.</p>
*/
inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
/**
* <p>The prevalence of the entry.</p>
*/
inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
/**
* <p>The prevalence of the entry.</p>
*/
inline HistogramEntry& WithCount(int value) { SetCount(value); return *this;}
private:
double m_value;
bool m_valueHasBeenSet;
int m_count;
bool m_countHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,244 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_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 XRay
{
namespace Model
{
/**
* <p>Information about an HTTP request.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/Http">AWS API
* Reference</a></p>
*/
class AWS_XRAY_API Http
{
public:
Http();
Http(Aws::Utils::Json::JsonView jsonValue);
Http& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The request URL.</p>
*/
inline const Aws::String& GetHttpURL() const{ return m_httpURL; }
/**
* <p>The request URL.</p>
*/
inline bool HttpURLHasBeenSet() const { return m_httpURLHasBeenSet; }
/**
* <p>The request URL.</p>
*/
inline void SetHttpURL(const Aws::String& value) { m_httpURLHasBeenSet = true; m_httpURL = value; }
/**
* <p>The request URL.</p>
*/
inline void SetHttpURL(Aws::String&& value) { m_httpURLHasBeenSet = true; m_httpURL = std::move(value); }
/**
* <p>The request URL.</p>
*/
inline void SetHttpURL(const char* value) { m_httpURLHasBeenSet = true; m_httpURL.assign(value); }
/**
* <p>The request URL.</p>
*/
inline Http& WithHttpURL(const Aws::String& value) { SetHttpURL(value); return *this;}
/**
* <p>The request URL.</p>
*/
inline Http& WithHttpURL(Aws::String&& value) { SetHttpURL(std::move(value)); return *this;}
/**
* <p>The request URL.</p>
*/
inline Http& WithHttpURL(const char* value) { SetHttpURL(value); return *this;}
/**
* <p>The response status.</p>
*/
inline int GetHttpStatus() const{ return m_httpStatus; }
/**
* <p>The response status.</p>
*/
inline bool HttpStatusHasBeenSet() const { return m_httpStatusHasBeenSet; }
/**
* <p>The response status.</p>
*/
inline void SetHttpStatus(int value) { m_httpStatusHasBeenSet = true; m_httpStatus = value; }
/**
* <p>The response status.</p>
*/
inline Http& WithHttpStatus(int value) { SetHttpStatus(value); return *this;}
/**
* <p>The request method.</p>
*/
inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; }
/**
* <p>The request method.</p>
*/
inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
/**
* <p>The request method.</p>
*/
inline void SetHttpMethod(const Aws::String& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
/**
* <p>The request method.</p>
*/
inline void SetHttpMethod(Aws::String&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::move(value); }
/**
* <p>The request method.</p>
*/
inline void SetHttpMethod(const char* value) { m_httpMethodHasBeenSet = true; m_httpMethod.assign(value); }
/**
* <p>The request method.</p>
*/
inline Http& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
/**
* <p>The request method.</p>
*/
inline Http& WithHttpMethod(Aws::String&& value) { SetHttpMethod(std::move(value)); return *this;}
/**
* <p>The request method.</p>
*/
inline Http& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;}
/**
* <p>The request's user agent string.</p>
*/
inline const Aws::String& GetUserAgent() const{ return m_userAgent; }
/**
* <p>The request's user agent string.</p>
*/
inline bool UserAgentHasBeenSet() const { return m_userAgentHasBeenSet; }
/**
* <p>The request's user agent string.</p>
*/
inline void SetUserAgent(const Aws::String& value) { m_userAgentHasBeenSet = true; m_userAgent = value; }
/**
* <p>The request's user agent string.</p>
*/
inline void SetUserAgent(Aws::String&& value) { m_userAgentHasBeenSet = true; m_userAgent = std::move(value); }
/**
* <p>The request's user agent string.</p>
*/
inline void SetUserAgent(const char* value) { m_userAgentHasBeenSet = true; m_userAgent.assign(value); }
/**
* <p>The request's user agent string.</p>
*/
inline Http& WithUserAgent(const Aws::String& value) { SetUserAgent(value); return *this;}
/**
* <p>The request's user agent string.</p>
*/
inline Http& WithUserAgent(Aws::String&& value) { SetUserAgent(std::move(value)); return *this;}
/**
* <p>The request's user agent string.</p>
*/
inline Http& WithUserAgent(const char* value) { SetUserAgent(value); return *this;}
/**
* <p>The IP address of the requestor.</p>
*/
inline const Aws::String& GetClientIp() const{ return m_clientIp; }
/**
* <p>The IP address of the requestor.</p>
*/
inline bool ClientIpHasBeenSet() const { return m_clientIpHasBeenSet; }
/**
* <p>The IP address of the requestor.</p>
*/
inline void SetClientIp(const Aws::String& value) { m_clientIpHasBeenSet = true; m_clientIp = value; }
/**
* <p>The IP address of the requestor.</p>
*/
inline void SetClientIp(Aws::String&& value) { m_clientIpHasBeenSet = true; m_clientIp = std::move(value); }
/**
* <p>The IP address of the requestor.</p>
*/
inline void SetClientIp(const char* value) { m_clientIpHasBeenSet = true; m_clientIp.assign(value); }
/**
* <p>The IP address of the requestor.</p>
*/
inline Http& WithClientIp(const Aws::String& value) { SetClientIp(value); return *this;}
/**
* <p>The IP address of the requestor.</p>
*/
inline Http& WithClientIp(Aws::String&& value) { SetClientIp(std::move(value)); return *this;}
/**
* <p>The IP address of the requestor.</p>
*/
inline Http& WithClientIp(const char* value) { SetClientIp(value); return *this;}
private:
Aws::String m_httpURL;
bool m_httpURLHasBeenSet;
int m_httpStatus;
bool m_httpStatusHasBeenSet;
Aws::String m_httpMethod;
bool m_httpMethodHasBeenSet;
Aws::String m_userAgent;
bool m_userAgentHasBeenSet;
Aws::String m_clientIp;
bool m_clientIpHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,89 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_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 XRay
{
namespace Model
{
/**
* <p>A list of EC2 instance IDs corresponding to the segments in a trace.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/InstanceIdDetail">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API InstanceIdDetail
{
public:
InstanceIdDetail();
InstanceIdDetail(Aws::Utils::Json::JsonView jsonValue);
InstanceIdDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of a corresponding EC2 instance.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The ID of a corresponding EC2 instance.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The ID of a corresponding EC2 instance.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The ID of a corresponding EC2 instance.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The ID of a corresponding EC2 instance.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The ID of a corresponding EC2 instance.</p>
*/
inline InstanceIdDetail& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The ID of a corresponding EC2 instance.</p>
*/
inline InstanceIdDetail& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The ID of a corresponding EC2 instance.</p>
*/
inline InstanceIdDetail& WithId(const char* value) { SetId(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,95 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/XRayRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace XRay
{
namespace Model
{
/**
*/
class AWS_XRAY_API ListTagsForResourceRequest : public XRayRequest
{
public:
ListTagsForResourceRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListTagsForResource"; }
Aws::String SerializePayload() const override;
inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
inline ListTagsForResourceRequest& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
inline ListTagsForResourceRequest& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
inline ListTagsForResourceRequest& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
inline ListTagsForResourceRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
inline ListTagsForResourceRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
inline ListTagsForResourceRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::String m_resourceARN;
bool m_resourceARNHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,89 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/xray/model/Tag.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
class AWS_XRAY_API ListTagsForResourceResult
{
public:
ListTagsForResourceResult();
ListTagsForResourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListTagsForResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
inline ListTagsForResourceResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
inline ListTagsForResourceResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
inline ListTagsForResourceResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
inline ListTagsForResourceResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
inline ListTagsForResourceResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
inline ListTagsForResourceResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
inline ListTagsForResourceResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Tag> m_tags;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,188 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/XRayRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/xray/model/EncryptionType.h>
#include <utility>
namespace Aws
{
namespace XRay
{
namespace Model
{
/**
*/
class AWS_XRAY_API PutEncryptionConfigRequest : public XRayRequest
{
public:
PutEncryptionConfigRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "PutEncryptionConfig"; }
Aws::String SerializePayload() const override;
/**
* <p>An AWS KMS customer master key (CMK) in one of the following formats:</p>
* <ul> <li> <p> <b>Alias</b> - The name of the key. For example,
* <code>alias/MyKey</code>.</p> </li> <li> <p> <b>Key ID</b> - The KMS key ID of
* the key. For example, <code>ae4aa6d49-a4d8-9df9-a475-4ff6d7898456</code>. AWS
* X-Ray does not support asymmetric CMKs.</p> </li> <li> <p> <b>ARN</b> - The full
* Amazon Resource Name of the key ID or alias. For example,
* <code>arn:aws:kms:us-east-2:123456789012:key/ae4aa6d49-a4d8-9df9-a475-4ff6d7898456</code>.
* Use this format to specify a key in a different account.</p> </li> </ul> <p>Omit
* this key if you set <code>Type</code> to <code>NONE</code>.</p>
*/
inline const Aws::String& GetKeyId() const{ return m_keyId; }
/**
* <p>An AWS KMS customer master key (CMK) in one of the following formats:</p>
* <ul> <li> <p> <b>Alias</b> - The name of the key. For example,
* <code>alias/MyKey</code>.</p> </li> <li> <p> <b>Key ID</b> - The KMS key ID of
* the key. For example, <code>ae4aa6d49-a4d8-9df9-a475-4ff6d7898456</code>. AWS
* X-Ray does not support asymmetric CMKs.</p> </li> <li> <p> <b>ARN</b> - The full
* Amazon Resource Name of the key ID or alias. For example,
* <code>arn:aws:kms:us-east-2:123456789012:key/ae4aa6d49-a4d8-9df9-a475-4ff6d7898456</code>.
* Use this format to specify a key in a different account.</p> </li> </ul> <p>Omit
* this key if you set <code>Type</code> to <code>NONE</code>.</p>
*/
inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
/**
* <p>An AWS KMS customer master key (CMK) in one of the following formats:</p>
* <ul> <li> <p> <b>Alias</b> - The name of the key. For example,
* <code>alias/MyKey</code>.</p> </li> <li> <p> <b>Key ID</b> - The KMS key ID of
* the key. For example, <code>ae4aa6d49-a4d8-9df9-a475-4ff6d7898456</code>. AWS
* X-Ray does not support asymmetric CMKs.</p> </li> <li> <p> <b>ARN</b> - The full
* Amazon Resource Name of the key ID or alias. For example,
* <code>arn:aws:kms:us-east-2:123456789012:key/ae4aa6d49-a4d8-9df9-a475-4ff6d7898456</code>.
* Use this format to specify a key in a different account.</p> </li> </ul> <p>Omit
* this key if you set <code>Type</code> to <code>NONE</code>.</p>
*/
inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
/**
* <p>An AWS KMS customer master key (CMK) in one of the following formats:</p>
* <ul> <li> <p> <b>Alias</b> - The name of the key. For example,
* <code>alias/MyKey</code>.</p> </li> <li> <p> <b>Key ID</b> - The KMS key ID of
* the key. For example, <code>ae4aa6d49-a4d8-9df9-a475-4ff6d7898456</code>. AWS
* X-Ray does not support asymmetric CMKs.</p> </li> <li> <p> <b>ARN</b> - The full
* Amazon Resource Name of the key ID or alias. For example,
* <code>arn:aws:kms:us-east-2:123456789012:key/ae4aa6d49-a4d8-9df9-a475-4ff6d7898456</code>.
* Use this format to specify a key in a different account.</p> </li> </ul> <p>Omit
* this key if you set <code>Type</code> to <code>NONE</code>.</p>
*/
inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
/**
* <p>An AWS KMS customer master key (CMK) in one of the following formats:</p>
* <ul> <li> <p> <b>Alias</b> - The name of the key. For example,
* <code>alias/MyKey</code>.</p> </li> <li> <p> <b>Key ID</b> - The KMS key ID of
* the key. For example, <code>ae4aa6d49-a4d8-9df9-a475-4ff6d7898456</code>. AWS
* X-Ray does not support asymmetric CMKs.</p> </li> <li> <p> <b>ARN</b> - The full
* Amazon Resource Name of the key ID or alias. For example,
* <code>arn:aws:kms:us-east-2:123456789012:key/ae4aa6d49-a4d8-9df9-a475-4ff6d7898456</code>.
* Use this format to specify a key in a different account.</p> </li> </ul> <p>Omit
* this key if you set <code>Type</code> to <code>NONE</code>.</p>
*/
inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
/**
* <p>An AWS KMS customer master key (CMK) in one of the following formats:</p>
* <ul> <li> <p> <b>Alias</b> - The name of the key. For example,
* <code>alias/MyKey</code>.</p> </li> <li> <p> <b>Key ID</b> - The KMS key ID of
* the key. For example, <code>ae4aa6d49-a4d8-9df9-a475-4ff6d7898456</code>. AWS
* X-Ray does not support asymmetric CMKs.</p> </li> <li> <p> <b>ARN</b> - The full
* Amazon Resource Name of the key ID or alias. For example,
* <code>arn:aws:kms:us-east-2:123456789012:key/ae4aa6d49-a4d8-9df9-a475-4ff6d7898456</code>.
* Use this format to specify a key in a different account.</p> </li> </ul> <p>Omit
* this key if you set <code>Type</code> to <code>NONE</code>.</p>
*/
inline PutEncryptionConfigRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
/**
* <p>An AWS KMS customer master key (CMK) in one of the following formats:</p>
* <ul> <li> <p> <b>Alias</b> - The name of the key. For example,
* <code>alias/MyKey</code>.</p> </li> <li> <p> <b>Key ID</b> - The KMS key ID of
* the key. For example, <code>ae4aa6d49-a4d8-9df9-a475-4ff6d7898456</code>. AWS
* X-Ray does not support asymmetric CMKs.</p> </li> <li> <p> <b>ARN</b> - The full
* Amazon Resource Name of the key ID or alias. For example,
* <code>arn:aws:kms:us-east-2:123456789012:key/ae4aa6d49-a4d8-9df9-a475-4ff6d7898456</code>.
* Use this format to specify a key in a different account.</p> </li> </ul> <p>Omit
* this key if you set <code>Type</code> to <code>NONE</code>.</p>
*/
inline PutEncryptionConfigRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
/**
* <p>An AWS KMS customer master key (CMK) in one of the following formats:</p>
* <ul> <li> <p> <b>Alias</b> - The name of the key. For example,
* <code>alias/MyKey</code>.</p> </li> <li> <p> <b>Key ID</b> - The KMS key ID of
* the key. For example, <code>ae4aa6d49-a4d8-9df9-a475-4ff6d7898456</code>. AWS
* X-Ray does not support asymmetric CMKs.</p> </li> <li> <p> <b>ARN</b> - The full
* Amazon Resource Name of the key ID or alias. For example,
* <code>arn:aws:kms:us-east-2:123456789012:key/ae4aa6d49-a4d8-9df9-a475-4ff6d7898456</code>.
* Use this format to specify a key in a different account.</p> </li> </ul> <p>Omit
* this key if you set <code>Type</code> to <code>NONE</code>.</p>
*/
inline PutEncryptionConfigRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
/**
* <p>The type of encryption. Set to <code>KMS</code> to use your own key for
* encryption. Set to <code>NONE</code> for default encryption.</p>
*/
inline const EncryptionType& GetType() const{ return m_type; }
/**
* <p>The type of encryption. Set to <code>KMS</code> to use your own key for
* encryption. Set to <code>NONE</code> for default encryption.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of encryption. Set to <code>KMS</code> to use your own key for
* encryption. Set to <code>NONE</code> for default encryption.</p>
*/
inline void SetType(const EncryptionType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of encryption. Set to <code>KMS</code> to use your own key for
* encryption. Set to <code>NONE</code> for default encryption.</p>
*/
inline void SetType(EncryptionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type of encryption. Set to <code>KMS</code> to use your own key for
* encryption. Set to <code>NONE</code> for default encryption.</p>
*/
inline PutEncryptionConfigRequest& WithType(const EncryptionType& value) { SetType(value); return *this;}
/**
* <p>The type of encryption. Set to <code>KMS</code> to use your own key for
* encryption. Set to <code>NONE</code> for default encryption.</p>
*/
inline PutEncryptionConfigRequest& WithType(EncryptionType&& value) { SetType(std::move(value)); return *this;}
private:
Aws::String m_keyId;
bool m_keyIdHasBeenSet;
EncryptionType m_type;
bool m_typeHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/model/EncryptionConfig.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
class AWS_XRAY_API PutEncryptionConfigResult
{
public:
PutEncryptionConfigResult();
PutEncryptionConfigResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
PutEncryptionConfigResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The new encryption configuration.</p>
*/
inline const EncryptionConfig& GetEncryptionConfig() const{ return m_encryptionConfig; }
/**
* <p>The new encryption configuration.</p>
*/
inline void SetEncryptionConfig(const EncryptionConfig& value) { m_encryptionConfig = value; }
/**
* <p>The new encryption configuration.</p>
*/
inline void SetEncryptionConfig(EncryptionConfig&& value) { m_encryptionConfig = std::move(value); }
/**
* <p>The new encryption configuration.</p>
*/
inline PutEncryptionConfigResult& WithEncryptionConfig(const EncryptionConfig& value) { SetEncryptionConfig(value); return *this;}
/**
* <p>The new encryption configuration.</p>
*/
inline PutEncryptionConfigResult& WithEncryptionConfig(EncryptionConfig&& value) { SetEncryptionConfig(std::move(value)); return *this;}
private:
EncryptionConfig m_encryptionConfig;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,217 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/XRayRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/xray/model/TelemetryRecord.h>
#include <utility>
namespace Aws
{
namespace XRay
{
namespace Model
{
/**
*/
class AWS_XRAY_API PutTelemetryRecordsRequest : public XRayRequest
{
public:
PutTelemetryRecordsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "PutTelemetryRecords"; }
Aws::String SerializePayload() const override;
/**
* <p/>
*/
inline const Aws::Vector<TelemetryRecord>& GetTelemetryRecords() const{ return m_telemetryRecords; }
/**
* <p/>
*/
inline bool TelemetryRecordsHasBeenSet() const { return m_telemetryRecordsHasBeenSet; }
/**
* <p/>
*/
inline void SetTelemetryRecords(const Aws::Vector<TelemetryRecord>& value) { m_telemetryRecordsHasBeenSet = true; m_telemetryRecords = value; }
/**
* <p/>
*/
inline void SetTelemetryRecords(Aws::Vector<TelemetryRecord>&& value) { m_telemetryRecordsHasBeenSet = true; m_telemetryRecords = std::move(value); }
/**
* <p/>
*/
inline PutTelemetryRecordsRequest& WithTelemetryRecords(const Aws::Vector<TelemetryRecord>& value) { SetTelemetryRecords(value); return *this;}
/**
* <p/>
*/
inline PutTelemetryRecordsRequest& WithTelemetryRecords(Aws::Vector<TelemetryRecord>&& value) { SetTelemetryRecords(std::move(value)); return *this;}
/**
* <p/>
*/
inline PutTelemetryRecordsRequest& AddTelemetryRecords(const TelemetryRecord& value) { m_telemetryRecordsHasBeenSet = true; m_telemetryRecords.push_back(value); return *this; }
/**
* <p/>
*/
inline PutTelemetryRecordsRequest& AddTelemetryRecords(TelemetryRecord&& value) { m_telemetryRecordsHasBeenSet = true; m_telemetryRecords.push_back(std::move(value)); return *this; }
/**
* <p/>
*/
inline const Aws::String& GetEC2InstanceId() const{ return m_eC2InstanceId; }
/**
* <p/>
*/
inline bool EC2InstanceIdHasBeenSet() const { return m_eC2InstanceIdHasBeenSet; }
/**
* <p/>
*/
inline void SetEC2InstanceId(const Aws::String& value) { m_eC2InstanceIdHasBeenSet = true; m_eC2InstanceId = value; }
/**
* <p/>
*/
inline void SetEC2InstanceId(Aws::String&& value) { m_eC2InstanceIdHasBeenSet = true; m_eC2InstanceId = std::move(value); }
/**
* <p/>
*/
inline void SetEC2InstanceId(const char* value) { m_eC2InstanceIdHasBeenSet = true; m_eC2InstanceId.assign(value); }
/**
* <p/>
*/
inline PutTelemetryRecordsRequest& WithEC2InstanceId(const Aws::String& value) { SetEC2InstanceId(value); return *this;}
/**
* <p/>
*/
inline PutTelemetryRecordsRequest& WithEC2InstanceId(Aws::String&& value) { SetEC2InstanceId(std::move(value)); return *this;}
/**
* <p/>
*/
inline PutTelemetryRecordsRequest& WithEC2InstanceId(const char* value) { SetEC2InstanceId(value); return *this;}
/**
* <p/>
*/
inline const Aws::String& GetHostname() const{ return m_hostname; }
/**
* <p/>
*/
inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
/**
* <p/>
*/
inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
/**
* <p/>
*/
inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); }
/**
* <p/>
*/
inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); }
/**
* <p/>
*/
inline PutTelemetryRecordsRequest& WithHostname(const Aws::String& value) { SetHostname(value); return *this;}
/**
* <p/>
*/
inline PutTelemetryRecordsRequest& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;}
/**
* <p/>
*/
inline PutTelemetryRecordsRequest& WithHostname(const char* value) { SetHostname(value); return *this;}
/**
* <p/>
*/
inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
/**
* <p/>
*/
inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
/**
* <p/>
*/
inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
/**
* <p/>
*/
inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
/**
* <p/>
*/
inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
/**
* <p/>
*/
inline PutTelemetryRecordsRequest& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
/**
* <p/>
*/
inline PutTelemetryRecordsRequest& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
/**
* <p/>
*/
inline PutTelemetryRecordsRequest& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
private:
Aws::Vector<TelemetryRecord> m_telemetryRecords;
bool m_telemetryRecordsHasBeenSet;
Aws::String m_eC2InstanceId;
bool m_eC2InstanceIdHasBeenSet;
Aws::String m_hostname;
bool m_hostnameHasBeenSet;
Aws::String m_resourceARN;
bool m_resourceARNHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
class AWS_XRAY_API PutTelemetryRecordsResult
{
public:
PutTelemetryRecordsResult();
PutTelemetryRecordsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
PutTelemetryRecordsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,98 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/XRayRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace XRay
{
namespace Model
{
/**
*/
class AWS_XRAY_API PutTraceSegmentsRequest : public XRayRequest
{
public:
PutTraceSegmentsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "PutTraceSegments"; }
Aws::String SerializePayload() const override;
/**
* <p>A string containing a JSON document defining one or more segments or
* subsegments.</p>
*/
inline const Aws::Vector<Aws::String>& GetTraceSegmentDocuments() const{ return m_traceSegmentDocuments; }
/**
* <p>A string containing a JSON document defining one or more segments or
* subsegments.</p>
*/
inline bool TraceSegmentDocumentsHasBeenSet() const { return m_traceSegmentDocumentsHasBeenSet; }
/**
* <p>A string containing a JSON document defining one or more segments or
* subsegments.</p>
*/
inline void SetTraceSegmentDocuments(const Aws::Vector<Aws::String>& value) { m_traceSegmentDocumentsHasBeenSet = true; m_traceSegmentDocuments = value; }
/**
* <p>A string containing a JSON document defining one or more segments or
* subsegments.</p>
*/
inline void SetTraceSegmentDocuments(Aws::Vector<Aws::String>&& value) { m_traceSegmentDocumentsHasBeenSet = true; m_traceSegmentDocuments = std::move(value); }
/**
* <p>A string containing a JSON document defining one or more segments or
* subsegments.</p>
*/
inline PutTraceSegmentsRequest& WithTraceSegmentDocuments(const Aws::Vector<Aws::String>& value) { SetTraceSegmentDocuments(value); return *this;}
/**
* <p>A string containing a JSON document defining one or more segments or
* subsegments.</p>
*/
inline PutTraceSegmentsRequest& WithTraceSegmentDocuments(Aws::Vector<Aws::String>&& value) { SetTraceSegmentDocuments(std::move(value)); return *this;}
/**
* <p>A string containing a JSON document defining one or more segments or
* subsegments.</p>
*/
inline PutTraceSegmentsRequest& AddTraceSegmentDocuments(const Aws::String& value) { m_traceSegmentDocumentsHasBeenSet = true; m_traceSegmentDocuments.push_back(value); return *this; }
/**
* <p>A string containing a JSON document defining one or more segments or
* subsegments.</p>
*/
inline PutTraceSegmentsRequest& AddTraceSegmentDocuments(Aws::String&& value) { m_traceSegmentDocumentsHasBeenSet = true; m_traceSegmentDocuments.push_back(std::move(value)); return *this; }
/**
* <p>A string containing a JSON document defining one or more segments or
* subsegments.</p>
*/
inline PutTraceSegmentsRequest& AddTraceSegmentDocuments(const char* value) { m_traceSegmentDocumentsHasBeenSet = true; m_traceSegmentDocuments.push_back(value); return *this; }
private:
Aws::Vector<Aws::String> m_traceSegmentDocuments;
bool m_traceSegmentDocumentsHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,78 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/xray/model/UnprocessedTraceSegment.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
class AWS_XRAY_API PutTraceSegmentsResult
{
public:
PutTraceSegmentsResult();
PutTraceSegmentsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
PutTraceSegmentsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Segments that failed processing.</p>
*/
inline const Aws::Vector<UnprocessedTraceSegment>& GetUnprocessedTraceSegments() const{ return m_unprocessedTraceSegments; }
/**
* <p>Segments that failed processing.</p>
*/
inline void SetUnprocessedTraceSegments(const Aws::Vector<UnprocessedTraceSegment>& value) { m_unprocessedTraceSegments = value; }
/**
* <p>Segments that failed processing.</p>
*/
inline void SetUnprocessedTraceSegments(Aws::Vector<UnprocessedTraceSegment>&& value) { m_unprocessedTraceSegments = std::move(value); }
/**
* <p>Segments that failed processing.</p>
*/
inline PutTraceSegmentsResult& WithUnprocessedTraceSegments(const Aws::Vector<UnprocessedTraceSegment>& value) { SetUnprocessedTraceSegments(value); return *this;}
/**
* <p>Segments that failed processing.</p>
*/
inline PutTraceSegmentsResult& WithUnprocessedTraceSegments(Aws::Vector<UnprocessedTraceSegment>&& value) { SetUnprocessedTraceSegments(std::move(value)); return *this;}
/**
* <p>Segments that failed processing.</p>
*/
inline PutTraceSegmentsResult& AddUnprocessedTraceSegments(const UnprocessedTraceSegment& value) { m_unprocessedTraceSegments.push_back(value); return *this; }
/**
* <p>Segments that failed processing.</p>
*/
inline PutTraceSegmentsResult& AddUnprocessedTraceSegments(UnprocessedTraceSegment&& value) { m_unprocessedTraceSegments.push_back(std::move(value)); return *this; }
private:
Aws::Vector<UnprocessedTraceSegment> m_unprocessedTraceSegments;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,89 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_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 XRay
{
namespace Model
{
/**
* <p>A list of resources ARNs corresponding to the segments in a
* trace.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ResourceARNDetail">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API ResourceARNDetail
{
public:
ResourceARNDetail();
ResourceARNDetail(Aws::Utils::Json::JsonView jsonValue);
ResourceARNDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ARN of a corresponding resource.</p>
*/
inline const Aws::String& GetARN() const{ return m_aRN; }
/**
* <p>The ARN of a corresponding resource.</p>
*/
inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
/**
* <p>The ARN of a corresponding resource.</p>
*/
inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
/**
* <p>The ARN of a corresponding resource.</p>
*/
inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
/**
* <p>The ARN of a corresponding resource.</p>
*/
inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
/**
* <p>The ARN of a corresponding resource.</p>
*/
inline ResourceARNDetail& WithARN(const Aws::String& value) { SetARN(value); return *this;}
/**
* <p>The ARN of a corresponding resource.</p>
*/
inline ResourceARNDetail& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
/**
* <p>The ARN of a corresponding resource.</p>
*/
inline ResourceARNDetail& WithARN(const char* value) { SetARN(value); return *this;}
private:
Aws::String m_aRN;
bool m_aRNHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,95 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_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 XRay
{
namespace Model
{
class AWS_XRAY_API ResourceNotFoundException
{
public:
ResourceNotFoundException();
ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue);
ResourceNotFoundException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const Aws::String& GetMessage() const{ return m_message; }
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
inline ResourceNotFoundException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
inline ResourceNotFoundException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
inline ResourceNotFoundException& WithMessage(const char* value) { SetMessage(value); return *this;}
inline const Aws::String& GetResourceName() const{ return m_resourceName; }
inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
inline ResourceNotFoundException& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
inline ResourceNotFoundException& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
inline ResourceNotFoundException& WithResourceName(const char* value) { SetResourceName(value); return *this;}
private:
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::String m_resourceName;
bool m_resourceNameHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,122 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/xray/model/ResponseTimeRootCauseService.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>The root cause information for a response time warning.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ResponseTimeRootCause">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API ResponseTimeRootCause
{
public:
ResponseTimeRootCause();
ResponseTimeRootCause(Aws::Utils::Json::JsonView jsonValue);
ResponseTimeRootCause& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A list of corresponding services. A service identifies a segment and contains
* a name, account ID, type, and inferred flag.</p>
*/
inline const Aws::Vector<ResponseTimeRootCauseService>& GetServices() const{ return m_services; }
/**
* <p>A list of corresponding services. A service identifies a segment and contains
* a name, account ID, type, and inferred flag.</p>
*/
inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
/**
* <p>A list of corresponding services. A service identifies a segment and contains
* a name, account ID, type, and inferred flag.</p>
*/
inline void SetServices(const Aws::Vector<ResponseTimeRootCauseService>& value) { m_servicesHasBeenSet = true; m_services = value; }
/**
* <p>A list of corresponding services. A service identifies a segment and contains
* a name, account ID, type, and inferred flag.</p>
*/
inline void SetServices(Aws::Vector<ResponseTimeRootCauseService>&& value) { m_servicesHasBeenSet = true; m_services = std::move(value); }
/**
* <p>A list of corresponding services. A service identifies a segment and contains
* a name, account ID, type, and inferred flag.</p>
*/
inline ResponseTimeRootCause& WithServices(const Aws::Vector<ResponseTimeRootCauseService>& value) { SetServices(value); return *this;}
/**
* <p>A list of corresponding services. A service identifies a segment and contains
* a name, account ID, type, and inferred flag.</p>
*/
inline ResponseTimeRootCause& WithServices(Aws::Vector<ResponseTimeRootCauseService>&& value) { SetServices(std::move(value)); return *this;}
/**
* <p>A list of corresponding services. A service identifies a segment and contains
* a name, account ID, type, and inferred flag.</p>
*/
inline ResponseTimeRootCause& AddServices(const ResponseTimeRootCauseService& value) { m_servicesHasBeenSet = true; m_services.push_back(value); return *this; }
/**
* <p>A list of corresponding services. A service identifies a segment and contains
* a name, account ID, type, and inferred flag.</p>
*/
inline ResponseTimeRootCause& AddServices(ResponseTimeRootCauseService&& value) { m_servicesHasBeenSet = true; m_services.push_back(std::move(value)); return *this; }
/**
* <p>A flag that denotes that the root cause impacts the trace client.</p>
*/
inline bool GetClientImpacting() const{ return m_clientImpacting; }
/**
* <p>A flag that denotes that the root cause impacts the trace client.</p>
*/
inline bool ClientImpactingHasBeenSet() const { return m_clientImpactingHasBeenSet; }
/**
* <p>A flag that denotes that the root cause impacts the trace client.</p>
*/
inline void SetClientImpacting(bool value) { m_clientImpactingHasBeenSet = true; m_clientImpacting = value; }
/**
* <p>A flag that denotes that the root cause impacts the trace client.</p>
*/
inline ResponseTimeRootCause& WithClientImpacting(bool value) { SetClientImpacting(value); return *this;}
private:
Aws::Vector<ResponseTimeRootCauseService> m_services;
bool m_servicesHasBeenSet;
bool m_clientImpacting;
bool m_clientImpactingHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_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 XRay
{
namespace Model
{
/**
* <p>A collection of segments and corresponding subsegments associated to a
* response time warning.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ResponseTimeRootCauseEntity">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API ResponseTimeRootCauseEntity
{
public:
ResponseTimeRootCauseEntity();
ResponseTimeRootCauseEntity(Aws::Utils::Json::JsonView jsonValue);
ResponseTimeRootCauseEntity& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the entity.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the entity.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the entity.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the entity.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the entity.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the entity.</p>
*/
inline ResponseTimeRootCauseEntity& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the entity.</p>
*/
inline ResponseTimeRootCauseEntity& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the entity.</p>
*/
inline ResponseTimeRootCauseEntity& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The types and messages of the exceptions.</p>
*/
inline double GetCoverage() const{ return m_coverage; }
/**
* <p>The types and messages of the exceptions.</p>
*/
inline bool CoverageHasBeenSet() const { return m_coverageHasBeenSet; }
/**
* <p>The types and messages of the exceptions.</p>
*/
inline void SetCoverage(double value) { m_coverageHasBeenSet = true; m_coverage = value; }
/**
* <p>The types and messages of the exceptions.</p>
*/
inline ResponseTimeRootCauseEntity& WithCoverage(double value) { SetCoverage(value); return *this;}
/**
* <p>A flag that denotes a remote subsegment.</p>
*/
inline bool GetRemote() const{ return m_remote; }
/**
* <p>A flag that denotes a remote subsegment.</p>
*/
inline bool RemoteHasBeenSet() const { return m_remoteHasBeenSet; }
/**
* <p>A flag that denotes a remote subsegment.</p>
*/
inline void SetRemote(bool value) { m_remoteHasBeenSet = true; m_remote = value; }
/**
* <p>A flag that denotes a remote subsegment.</p>
*/
inline ResponseTimeRootCauseEntity& WithRemote(bool value) { SetRemote(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
double m_coverage;
bool m_coverageHasBeenSet;
bool m_remote;
bool m_remoteHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,296 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/xray/model/ResponseTimeRootCauseEntity.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>A collection of fields identifying the service in a response time
* warning.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ResponseTimeRootCauseService">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API ResponseTimeRootCauseService
{
public:
ResponseTimeRootCauseService();
ResponseTimeRootCauseService(Aws::Utils::Json::JsonView jsonValue);
ResponseTimeRootCauseService& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The service name.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The service name.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The service name.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The service name.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The service name.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The service name.</p>
*/
inline ResponseTimeRootCauseService& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The service name.</p>
*/
inline ResponseTimeRootCauseService& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The service name.</p>
*/
inline ResponseTimeRootCauseService& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A collection of associated service names.</p>
*/
inline const Aws::Vector<Aws::String>& GetNames() const{ return m_names; }
/**
* <p>A collection of associated service names.</p>
*/
inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
/**
* <p>A collection of associated service names.</p>
*/
inline void SetNames(const Aws::Vector<Aws::String>& value) { m_namesHasBeenSet = true; m_names = value; }
/**
* <p>A collection of associated service names.</p>
*/
inline void SetNames(Aws::Vector<Aws::String>&& value) { m_namesHasBeenSet = true; m_names = std::move(value); }
/**
* <p>A collection of associated service names.</p>
*/
inline ResponseTimeRootCauseService& WithNames(const Aws::Vector<Aws::String>& value) { SetNames(value); return *this;}
/**
* <p>A collection of associated service names.</p>
*/
inline ResponseTimeRootCauseService& WithNames(Aws::Vector<Aws::String>&& value) { SetNames(std::move(value)); return *this;}
/**
* <p>A collection of associated service names.</p>
*/
inline ResponseTimeRootCauseService& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
/**
* <p>A collection of associated service names.</p>
*/
inline ResponseTimeRootCauseService& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; }
/**
* <p>A collection of associated service names.</p>
*/
inline ResponseTimeRootCauseService& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
/**
* <p>The type associated to the service.</p>
*/
inline const Aws::String& GetType() const{ return m_type; }
/**
* <p>The type associated to the service.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type associated to the service.</p>
*/
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type associated to the service.</p>
*/
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type associated to the service.</p>
*/
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
/**
* <p>The type associated to the service.</p>
*/
inline ResponseTimeRootCauseService& WithType(const Aws::String& value) { SetType(value); return *this;}
/**
* <p>The type associated to the service.</p>
*/
inline ResponseTimeRootCauseService& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The type associated to the service.</p>
*/
inline ResponseTimeRootCauseService& WithType(const char* value) { SetType(value); return *this;}
/**
* <p>The account ID associated to the service.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The account ID associated to the service.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The account ID associated to the service.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The account ID associated to the service.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The account ID associated to the service.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The account ID associated to the service.</p>
*/
inline ResponseTimeRootCauseService& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The account ID associated to the service.</p>
*/
inline ResponseTimeRootCauseService& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The account ID associated to the service.</p>
*/
inline ResponseTimeRootCauseService& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The path of root cause entities found on the service. </p>
*/
inline const Aws::Vector<ResponseTimeRootCauseEntity>& GetEntityPath() const{ return m_entityPath; }
/**
* <p>The path of root cause entities found on the service. </p>
*/
inline bool EntityPathHasBeenSet() const { return m_entityPathHasBeenSet; }
/**
* <p>The path of root cause entities found on the service. </p>
*/
inline void SetEntityPath(const Aws::Vector<ResponseTimeRootCauseEntity>& value) { m_entityPathHasBeenSet = true; m_entityPath = value; }
/**
* <p>The path of root cause entities found on the service. </p>
*/
inline void SetEntityPath(Aws::Vector<ResponseTimeRootCauseEntity>&& value) { m_entityPathHasBeenSet = true; m_entityPath = std::move(value); }
/**
* <p>The path of root cause entities found on the service. </p>
*/
inline ResponseTimeRootCauseService& WithEntityPath(const Aws::Vector<ResponseTimeRootCauseEntity>& value) { SetEntityPath(value); return *this;}
/**
* <p>The path of root cause entities found on the service. </p>
*/
inline ResponseTimeRootCauseService& WithEntityPath(Aws::Vector<ResponseTimeRootCauseEntity>&& value) { SetEntityPath(std::move(value)); return *this;}
/**
* <p>The path of root cause entities found on the service. </p>
*/
inline ResponseTimeRootCauseService& AddEntityPath(const ResponseTimeRootCauseEntity& value) { m_entityPathHasBeenSet = true; m_entityPath.push_back(value); return *this; }
/**
* <p>The path of root cause entities found on the service. </p>
*/
inline ResponseTimeRootCauseService& AddEntityPath(ResponseTimeRootCauseEntity&& value) { m_entityPathHasBeenSet = true; m_entityPath.push_back(std::move(value)); return *this; }
/**
* <p>A Boolean value indicating if the service is inferred from the trace.</p>
*/
inline bool GetInferred() const{ return m_inferred; }
/**
* <p>A Boolean value indicating if the service is inferred from the trace.</p>
*/
inline bool InferredHasBeenSet() const { return m_inferredHasBeenSet; }
/**
* <p>A Boolean value indicating if the service is inferred from the trace.</p>
*/
inline void SetInferred(bool value) { m_inferredHasBeenSet = true; m_inferred = value; }
/**
* <p>A Boolean value indicating if the service is inferred from the trace.</p>
*/
inline ResponseTimeRootCauseService& WithInferred(bool value) { SetInferred(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Vector<Aws::String> m_names;
bool m_namesHasBeenSet;
Aws::String m_type;
bool m_typeHasBeenSet;
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::Vector<ResponseTimeRootCauseEntity> m_entityPath;
bool m_entityPathHasBeenSet;
bool m_inferred;
bool m_inferredHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,132 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_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 XRay
{
namespace Model
{
/**
* <p>The exception associated with a root cause.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/RootCauseException">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API RootCauseException
{
public:
RootCauseException();
RootCauseException(Aws::Utils::Json::JsonView jsonValue);
RootCauseException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the exception.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the exception.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the exception.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the exception.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the exception.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the exception.</p>
*/
inline RootCauseException& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the exception.</p>
*/
inline RootCauseException& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the exception.</p>
*/
inline RootCauseException& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The message of the exception.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>The message of the exception.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>The message of the exception.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>The message of the exception.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>The message of the exception.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>The message of the exception.</p>
*/
inline RootCauseException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>The message of the exception.</p>
*/
inline RootCauseException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>The message of the exception.</p>
*/
inline RootCauseException& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,609 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>A sampling rule that services use to decide whether to instrument a request.
* Rule fields can match properties of the service, or properties of a request. The
* service can ignore rules that don't match its properties.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/SamplingRule">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API SamplingRule
{
public:
SamplingRule();
SamplingRule(Aws::Utils::Json::JsonView jsonValue);
SamplingRule& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline const Aws::String& GetRuleName() const{ return m_ruleName; }
/**
* <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
/**
* <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
/**
* <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
/**
* <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
/**
* <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline SamplingRule& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
/**
* <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline SamplingRule& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
/**
* <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline SamplingRule& WithRuleName(const char* value) { SetRuleName(value); return *this;}
/**
* <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline const Aws::String& GetRuleARN() const{ return m_ruleARN; }
/**
* <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline bool RuleARNHasBeenSet() const { return m_ruleARNHasBeenSet; }
/**
* <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline void SetRuleARN(const Aws::String& value) { m_ruleARNHasBeenSet = true; m_ruleARN = value; }
/**
* <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline void SetRuleARN(Aws::String&& value) { m_ruleARNHasBeenSet = true; m_ruleARN = std::move(value); }
/**
* <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline void SetRuleARN(const char* value) { m_ruleARNHasBeenSet = true; m_ruleARN.assign(value); }
/**
* <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline SamplingRule& WithRuleARN(const Aws::String& value) { SetRuleARN(value); return *this;}
/**
* <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline SamplingRule& WithRuleARN(Aws::String&& value) { SetRuleARN(std::move(value)); return *this;}
/**
* <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline SamplingRule& WithRuleARN(const char* value) { SetRuleARN(value); return *this;}
/**
* <p>Matches the ARN of the AWS resource on which the service runs.</p>
*/
inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
/**
* <p>Matches the ARN of the AWS resource on which the service runs.</p>
*/
inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
/**
* <p>Matches the ARN of the AWS resource on which the service runs.</p>
*/
inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
/**
* <p>Matches the ARN of the AWS resource on which the service runs.</p>
*/
inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
/**
* <p>Matches the ARN of the AWS resource on which the service runs.</p>
*/
inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
/**
* <p>Matches the ARN of the AWS resource on which the service runs.</p>
*/
inline SamplingRule& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
/**
* <p>Matches the ARN of the AWS resource on which the service runs.</p>
*/
inline SamplingRule& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
/**
* <p>Matches the ARN of the AWS resource on which the service runs.</p>
*/
inline SamplingRule& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
/**
* <p>The priority of the sampling rule.</p>
*/
inline int GetPriority() const{ return m_priority; }
/**
* <p>The priority of the sampling rule.</p>
*/
inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
/**
* <p>The priority of the sampling rule.</p>
*/
inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
/**
* <p>The priority of the sampling rule.</p>
*/
inline SamplingRule& WithPriority(int value) { SetPriority(value); return *this;}
/**
* <p>The percentage of matching requests to instrument, after the reservoir is
* exhausted.</p>
*/
inline double GetFixedRate() const{ return m_fixedRate; }
/**
* <p>The percentage of matching requests to instrument, after the reservoir is
* exhausted.</p>
*/
inline bool FixedRateHasBeenSet() const { return m_fixedRateHasBeenSet; }
/**
* <p>The percentage of matching requests to instrument, after the reservoir is
* exhausted.</p>
*/
inline void SetFixedRate(double value) { m_fixedRateHasBeenSet = true; m_fixedRate = value; }
/**
* <p>The percentage of matching requests to instrument, after the reservoir is
* exhausted.</p>
*/
inline SamplingRule& WithFixedRate(double value) { SetFixedRate(value); return *this;}
/**
* <p>A fixed number of matching requests to instrument per second, prior to
* applying the fixed rate. The reservoir is not used directly by services, but
* applies to all services using the rule collectively.</p>
*/
inline int GetReservoirSize() const{ return m_reservoirSize; }
/**
* <p>A fixed number of matching requests to instrument per second, prior to
* applying the fixed rate. The reservoir is not used directly by services, but
* applies to all services using the rule collectively.</p>
*/
inline bool ReservoirSizeHasBeenSet() const { return m_reservoirSizeHasBeenSet; }
/**
* <p>A fixed number of matching requests to instrument per second, prior to
* applying the fixed rate. The reservoir is not used directly by services, but
* applies to all services using the rule collectively.</p>
*/
inline void SetReservoirSize(int value) { m_reservoirSizeHasBeenSet = true; m_reservoirSize = value; }
/**
* <p>A fixed number of matching requests to instrument per second, prior to
* applying the fixed rate. The reservoir is not used directly by services, but
* applies to all services using the rule collectively.</p>
*/
inline SamplingRule& WithReservoirSize(int value) { SetReservoirSize(value); return *this;}
/**
* <p>Matches the <code>name</code> that the service uses to identify itself in
* segments.</p>
*/
inline const Aws::String& GetServiceName() const{ return m_serviceName; }
/**
* <p>Matches the <code>name</code> that the service uses to identify itself in
* segments.</p>
*/
inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
/**
* <p>Matches the <code>name</code> that the service uses to identify itself in
* segments.</p>
*/
inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
/**
* <p>Matches the <code>name</code> that the service uses to identify itself in
* segments.</p>
*/
inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
/**
* <p>Matches the <code>name</code> that the service uses to identify itself in
* segments.</p>
*/
inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
/**
* <p>Matches the <code>name</code> that the service uses to identify itself in
* segments.</p>
*/
inline SamplingRule& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
/**
* <p>Matches the <code>name</code> that the service uses to identify itself in
* segments.</p>
*/
inline SamplingRule& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
/**
* <p>Matches the <code>name</code> that the service uses to identify itself in
* segments.</p>
*/
inline SamplingRule& WithServiceName(const char* value) { SetServiceName(value); return *this;}
/**
* <p>Matches the <code>origin</code> that the service uses to identify its type in
* segments.</p>
*/
inline const Aws::String& GetServiceType() const{ return m_serviceType; }
/**
* <p>Matches the <code>origin</code> that the service uses to identify its type in
* segments.</p>
*/
inline bool ServiceTypeHasBeenSet() const { return m_serviceTypeHasBeenSet; }
/**
* <p>Matches the <code>origin</code> that the service uses to identify its type in
* segments.</p>
*/
inline void SetServiceType(const Aws::String& value) { m_serviceTypeHasBeenSet = true; m_serviceType = value; }
/**
* <p>Matches the <code>origin</code> that the service uses to identify its type in
* segments.</p>
*/
inline void SetServiceType(Aws::String&& value) { m_serviceTypeHasBeenSet = true; m_serviceType = std::move(value); }
/**
* <p>Matches the <code>origin</code> that the service uses to identify its type in
* segments.</p>
*/
inline void SetServiceType(const char* value) { m_serviceTypeHasBeenSet = true; m_serviceType.assign(value); }
/**
* <p>Matches the <code>origin</code> that the service uses to identify its type in
* segments.</p>
*/
inline SamplingRule& WithServiceType(const Aws::String& value) { SetServiceType(value); return *this;}
/**
* <p>Matches the <code>origin</code> that the service uses to identify its type in
* segments.</p>
*/
inline SamplingRule& WithServiceType(Aws::String&& value) { SetServiceType(std::move(value)); return *this;}
/**
* <p>Matches the <code>origin</code> that the service uses to identify its type in
* segments.</p>
*/
inline SamplingRule& WithServiceType(const char* value) { SetServiceType(value); return *this;}
/**
* <p>Matches the hostname from a request URL.</p>
*/
inline const Aws::String& GetHost() const{ return m_host; }
/**
* <p>Matches the hostname from a request URL.</p>
*/
inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
/**
* <p>Matches the hostname from a request URL.</p>
*/
inline void SetHost(const Aws::String& value) { m_hostHasBeenSet = true; m_host = value; }
/**
* <p>Matches the hostname from a request URL.</p>
*/
inline void SetHost(Aws::String&& value) { m_hostHasBeenSet = true; m_host = std::move(value); }
/**
* <p>Matches the hostname from a request URL.</p>
*/
inline void SetHost(const char* value) { m_hostHasBeenSet = true; m_host.assign(value); }
/**
* <p>Matches the hostname from a request URL.</p>
*/
inline SamplingRule& WithHost(const Aws::String& value) { SetHost(value); return *this;}
/**
* <p>Matches the hostname from a request URL.</p>
*/
inline SamplingRule& WithHost(Aws::String&& value) { SetHost(std::move(value)); return *this;}
/**
* <p>Matches the hostname from a request URL.</p>
*/
inline SamplingRule& WithHost(const char* value) { SetHost(value); return *this;}
/**
* <p>Matches the HTTP method of a request.</p>
*/
inline const Aws::String& GetHTTPMethod() const{ return m_hTTPMethod; }
/**
* <p>Matches the HTTP method of a request.</p>
*/
inline bool HTTPMethodHasBeenSet() const { return m_hTTPMethodHasBeenSet; }
/**
* <p>Matches the HTTP method of a request.</p>
*/
inline void SetHTTPMethod(const Aws::String& value) { m_hTTPMethodHasBeenSet = true; m_hTTPMethod = value; }
/**
* <p>Matches the HTTP method of a request.</p>
*/
inline void SetHTTPMethod(Aws::String&& value) { m_hTTPMethodHasBeenSet = true; m_hTTPMethod = std::move(value); }
/**
* <p>Matches the HTTP method of a request.</p>
*/
inline void SetHTTPMethod(const char* value) { m_hTTPMethodHasBeenSet = true; m_hTTPMethod.assign(value); }
/**
* <p>Matches the HTTP method of a request.</p>
*/
inline SamplingRule& WithHTTPMethod(const Aws::String& value) { SetHTTPMethod(value); return *this;}
/**
* <p>Matches the HTTP method of a request.</p>
*/
inline SamplingRule& WithHTTPMethod(Aws::String&& value) { SetHTTPMethod(std::move(value)); return *this;}
/**
* <p>Matches the HTTP method of a request.</p>
*/
inline SamplingRule& WithHTTPMethod(const char* value) { SetHTTPMethod(value); return *this;}
/**
* <p>Matches the path from a request URL.</p>
*/
inline const Aws::String& GetURLPath() const{ return m_uRLPath; }
/**
* <p>Matches the path from a request URL.</p>
*/
inline bool URLPathHasBeenSet() const { return m_uRLPathHasBeenSet; }
/**
* <p>Matches the path from a request URL.</p>
*/
inline void SetURLPath(const Aws::String& value) { m_uRLPathHasBeenSet = true; m_uRLPath = value; }
/**
* <p>Matches the path from a request URL.</p>
*/
inline void SetURLPath(Aws::String&& value) { m_uRLPathHasBeenSet = true; m_uRLPath = std::move(value); }
/**
* <p>Matches the path from a request URL.</p>
*/
inline void SetURLPath(const char* value) { m_uRLPathHasBeenSet = true; m_uRLPath.assign(value); }
/**
* <p>Matches the path from a request URL.</p>
*/
inline SamplingRule& WithURLPath(const Aws::String& value) { SetURLPath(value); return *this;}
/**
* <p>Matches the path from a request URL.</p>
*/
inline SamplingRule& WithURLPath(Aws::String&& value) { SetURLPath(std::move(value)); return *this;}
/**
* <p>Matches the path from a request URL.</p>
*/
inline SamplingRule& WithURLPath(const char* value) { SetURLPath(value); return *this;}
/**
* <p>The version of the sampling rule format (<code>1</code>).</p>
*/
inline int GetVersion() const{ return m_version; }
/**
* <p>The version of the sampling rule format (<code>1</code>).</p>
*/
inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
/**
* <p>The version of the sampling rule format (<code>1</code>).</p>
*/
inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; }
/**
* <p>The version of the sampling rule format (<code>1</code>).</p>
*/
inline SamplingRule& WithVersion(int value) { SetVersion(value); return *this;}
/**
* <p>Matches attributes derived from the request.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
/**
* <p>Matches attributes derived from the request.</p>
*/
inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
/**
* <p>Matches attributes derived from the request.</p>
*/
inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
/**
* <p>Matches attributes derived from the request.</p>
*/
inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
/**
* <p>Matches attributes derived from the request.</p>
*/
inline SamplingRule& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
/**
* <p>Matches attributes derived from the request.</p>
*/
inline SamplingRule& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
/**
* <p>Matches attributes derived from the request.</p>
*/
inline SamplingRule& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
/**
* <p>Matches attributes derived from the request.</p>
*/
inline SamplingRule& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
/**
* <p>Matches attributes derived from the request.</p>
*/
inline SamplingRule& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
/**
* <p>Matches attributes derived from the request.</p>
*/
inline SamplingRule& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>Matches attributes derived from the request.</p>
*/
inline SamplingRule& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
/**
* <p>Matches attributes derived from the request.</p>
*/
inline SamplingRule& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
/**
* <p>Matches attributes derived from the request.</p>
*/
inline SamplingRule& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
private:
Aws::String m_ruleName;
bool m_ruleNameHasBeenSet;
Aws::String m_ruleARN;
bool m_ruleARNHasBeenSet;
Aws::String m_resourceARN;
bool m_resourceARNHasBeenSet;
int m_priority;
bool m_priorityHasBeenSet;
double m_fixedRate;
bool m_fixedRateHasBeenSet;
int m_reservoirSize;
bool m_reservoirSizeHasBeenSet;
Aws::String m_serviceName;
bool m_serviceNameHasBeenSet;
Aws::String m_serviceType;
bool m_serviceTypeHasBeenSet;
Aws::String m_host;
bool m_hostHasBeenSet;
Aws::String m_hTTPMethod;
bool m_hTTPMethodHasBeenSet;
Aws::String m_uRLPath;
bool m_uRLPathHasBeenSet;
int m_version;
bool m_versionHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_attributes;
bool m_attributesHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,147 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/model/SamplingRule.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>A <a>SamplingRule</a> and its metadata.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/SamplingRuleRecord">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API SamplingRuleRecord
{
public:
SamplingRuleRecord();
SamplingRuleRecord(Aws::Utils::Json::JsonView jsonValue);
SamplingRuleRecord& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The sampling rule.</p>
*/
inline const SamplingRule& GetSamplingRule() const{ return m_samplingRule; }
/**
* <p>The sampling rule.</p>
*/
inline bool SamplingRuleHasBeenSet() const { return m_samplingRuleHasBeenSet; }
/**
* <p>The sampling rule.</p>
*/
inline void SetSamplingRule(const SamplingRule& value) { m_samplingRuleHasBeenSet = true; m_samplingRule = value; }
/**
* <p>The sampling rule.</p>
*/
inline void SetSamplingRule(SamplingRule&& value) { m_samplingRuleHasBeenSet = true; m_samplingRule = std::move(value); }
/**
* <p>The sampling rule.</p>
*/
inline SamplingRuleRecord& WithSamplingRule(const SamplingRule& value) { SetSamplingRule(value); return *this;}
/**
* <p>The sampling rule.</p>
*/
inline SamplingRuleRecord& WithSamplingRule(SamplingRule&& value) { SetSamplingRule(std::move(value)); return *this;}
/**
* <p>When the rule was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
/**
* <p>When the rule was created.</p>
*/
inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
/**
* <p>When the rule was created.</p>
*/
inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
/**
* <p>When the rule was created.</p>
*/
inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
/**
* <p>When the rule was created.</p>
*/
inline SamplingRuleRecord& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
/**
* <p>When the rule was created.</p>
*/
inline SamplingRuleRecord& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
/**
* <p>When the rule was last modified.</p>
*/
inline const Aws::Utils::DateTime& GetModifiedAt() const{ return m_modifiedAt; }
/**
* <p>When the rule was last modified.</p>
*/
inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
/**
* <p>When the rule was last modified.</p>
*/
inline void SetModifiedAt(const Aws::Utils::DateTime& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = value; }
/**
* <p>When the rule was last modified.</p>
*/
inline void SetModifiedAt(Aws::Utils::DateTime&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::move(value); }
/**
* <p>When the rule was last modified.</p>
*/
inline SamplingRuleRecord& WithModifiedAt(const Aws::Utils::DateTime& value) { SetModifiedAt(value); return *this;}
/**
* <p>When the rule was last modified.</p>
*/
inline SamplingRuleRecord& WithModifiedAt(Aws::Utils::DateTime&& value) { SetModifiedAt(std::move(value)); return *this;}
private:
SamplingRule m_samplingRule;
bool m_samplingRuleHasBeenSet;
Aws::Utils::DateTime m_createdAt;
bool m_createdAtHasBeenSet;
Aws::Utils::DateTime m_modifiedAt;
bool m_modifiedAtHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,583 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>A document specifying changes to a sampling rule's
* configuration.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/SamplingRuleUpdate">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API SamplingRuleUpdate
{
public:
SamplingRuleUpdate();
SamplingRuleUpdate(Aws::Utils::Json::JsonView jsonValue);
SamplingRuleUpdate& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline const Aws::String& GetRuleName() const{ return m_ruleName; }
/**
* <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
/**
* <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
/**
* <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
/**
* <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
/**
* <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline SamplingRuleUpdate& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
/**
* <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline SamplingRuleUpdate& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
/**
* <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline SamplingRuleUpdate& WithRuleName(const char* value) { SetRuleName(value); return *this;}
/**
* <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline const Aws::String& GetRuleARN() const{ return m_ruleARN; }
/**
* <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline bool RuleARNHasBeenSet() const { return m_ruleARNHasBeenSet; }
/**
* <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline void SetRuleARN(const Aws::String& value) { m_ruleARNHasBeenSet = true; m_ruleARN = value; }
/**
* <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline void SetRuleARN(Aws::String&& value) { m_ruleARNHasBeenSet = true; m_ruleARN = std::move(value); }
/**
* <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline void SetRuleARN(const char* value) { m_ruleARNHasBeenSet = true; m_ruleARN.assign(value); }
/**
* <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline SamplingRuleUpdate& WithRuleARN(const Aws::String& value) { SetRuleARN(value); return *this;}
/**
* <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline SamplingRuleUpdate& WithRuleARN(Aws::String&& value) { SetRuleARN(std::move(value)); return *this;}
/**
* <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
* both.</p>
*/
inline SamplingRuleUpdate& WithRuleARN(const char* value) { SetRuleARN(value); return *this;}
/**
* <p>Matches the ARN of the AWS resource on which the service runs.</p>
*/
inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
/**
* <p>Matches the ARN of the AWS resource on which the service runs.</p>
*/
inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
/**
* <p>Matches the ARN of the AWS resource on which the service runs.</p>
*/
inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
/**
* <p>Matches the ARN of the AWS resource on which the service runs.</p>
*/
inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
/**
* <p>Matches the ARN of the AWS resource on which the service runs.</p>
*/
inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
/**
* <p>Matches the ARN of the AWS resource on which the service runs.</p>
*/
inline SamplingRuleUpdate& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
/**
* <p>Matches the ARN of the AWS resource on which the service runs.</p>
*/
inline SamplingRuleUpdate& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
/**
* <p>Matches the ARN of the AWS resource on which the service runs.</p>
*/
inline SamplingRuleUpdate& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
/**
* <p>The priority of the sampling rule.</p>
*/
inline int GetPriority() const{ return m_priority; }
/**
* <p>The priority of the sampling rule.</p>
*/
inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
/**
* <p>The priority of the sampling rule.</p>
*/
inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
/**
* <p>The priority of the sampling rule.</p>
*/
inline SamplingRuleUpdate& WithPriority(int value) { SetPriority(value); return *this;}
/**
* <p>The percentage of matching requests to instrument, after the reservoir is
* exhausted.</p>
*/
inline double GetFixedRate() const{ return m_fixedRate; }
/**
* <p>The percentage of matching requests to instrument, after the reservoir is
* exhausted.</p>
*/
inline bool FixedRateHasBeenSet() const { return m_fixedRateHasBeenSet; }
/**
* <p>The percentage of matching requests to instrument, after the reservoir is
* exhausted.</p>
*/
inline void SetFixedRate(double value) { m_fixedRateHasBeenSet = true; m_fixedRate = value; }
/**
* <p>The percentage of matching requests to instrument, after the reservoir is
* exhausted.</p>
*/
inline SamplingRuleUpdate& WithFixedRate(double value) { SetFixedRate(value); return *this;}
/**
* <p>A fixed number of matching requests to instrument per second, prior to
* applying the fixed rate. The reservoir is not used directly by services, but
* applies to all services using the rule collectively.</p>
*/
inline int GetReservoirSize() const{ return m_reservoirSize; }
/**
* <p>A fixed number of matching requests to instrument per second, prior to
* applying the fixed rate. The reservoir is not used directly by services, but
* applies to all services using the rule collectively.</p>
*/
inline bool ReservoirSizeHasBeenSet() const { return m_reservoirSizeHasBeenSet; }
/**
* <p>A fixed number of matching requests to instrument per second, prior to
* applying the fixed rate. The reservoir is not used directly by services, but
* applies to all services using the rule collectively.</p>
*/
inline void SetReservoirSize(int value) { m_reservoirSizeHasBeenSet = true; m_reservoirSize = value; }
/**
* <p>A fixed number of matching requests to instrument per second, prior to
* applying the fixed rate. The reservoir is not used directly by services, but
* applies to all services using the rule collectively.</p>
*/
inline SamplingRuleUpdate& WithReservoirSize(int value) { SetReservoirSize(value); return *this;}
/**
* <p>Matches the hostname from a request URL.</p>
*/
inline const Aws::String& GetHost() const{ return m_host; }
/**
* <p>Matches the hostname from a request URL.</p>
*/
inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
/**
* <p>Matches the hostname from a request URL.</p>
*/
inline void SetHost(const Aws::String& value) { m_hostHasBeenSet = true; m_host = value; }
/**
* <p>Matches the hostname from a request URL.</p>
*/
inline void SetHost(Aws::String&& value) { m_hostHasBeenSet = true; m_host = std::move(value); }
/**
* <p>Matches the hostname from a request URL.</p>
*/
inline void SetHost(const char* value) { m_hostHasBeenSet = true; m_host.assign(value); }
/**
* <p>Matches the hostname from a request URL.</p>
*/
inline SamplingRuleUpdate& WithHost(const Aws::String& value) { SetHost(value); return *this;}
/**
* <p>Matches the hostname from a request URL.</p>
*/
inline SamplingRuleUpdate& WithHost(Aws::String&& value) { SetHost(std::move(value)); return *this;}
/**
* <p>Matches the hostname from a request URL.</p>
*/
inline SamplingRuleUpdate& WithHost(const char* value) { SetHost(value); return *this;}
/**
* <p>Matches the <code>name</code> that the service uses to identify itself in
* segments.</p>
*/
inline const Aws::String& GetServiceName() const{ return m_serviceName; }
/**
* <p>Matches the <code>name</code> that the service uses to identify itself in
* segments.</p>
*/
inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
/**
* <p>Matches the <code>name</code> that the service uses to identify itself in
* segments.</p>
*/
inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
/**
* <p>Matches the <code>name</code> that the service uses to identify itself in
* segments.</p>
*/
inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
/**
* <p>Matches the <code>name</code> that the service uses to identify itself in
* segments.</p>
*/
inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
/**
* <p>Matches the <code>name</code> that the service uses to identify itself in
* segments.</p>
*/
inline SamplingRuleUpdate& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
/**
* <p>Matches the <code>name</code> that the service uses to identify itself in
* segments.</p>
*/
inline SamplingRuleUpdate& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
/**
* <p>Matches the <code>name</code> that the service uses to identify itself in
* segments.</p>
*/
inline SamplingRuleUpdate& WithServiceName(const char* value) { SetServiceName(value); return *this;}
/**
* <p>Matches the <code>origin</code> that the service uses to identify its type in
* segments.</p>
*/
inline const Aws::String& GetServiceType() const{ return m_serviceType; }
/**
* <p>Matches the <code>origin</code> that the service uses to identify its type in
* segments.</p>
*/
inline bool ServiceTypeHasBeenSet() const { return m_serviceTypeHasBeenSet; }
/**
* <p>Matches the <code>origin</code> that the service uses to identify its type in
* segments.</p>
*/
inline void SetServiceType(const Aws::String& value) { m_serviceTypeHasBeenSet = true; m_serviceType = value; }
/**
* <p>Matches the <code>origin</code> that the service uses to identify its type in
* segments.</p>
*/
inline void SetServiceType(Aws::String&& value) { m_serviceTypeHasBeenSet = true; m_serviceType = std::move(value); }
/**
* <p>Matches the <code>origin</code> that the service uses to identify its type in
* segments.</p>
*/
inline void SetServiceType(const char* value) { m_serviceTypeHasBeenSet = true; m_serviceType.assign(value); }
/**
* <p>Matches the <code>origin</code> that the service uses to identify its type in
* segments.</p>
*/
inline SamplingRuleUpdate& WithServiceType(const Aws::String& value) { SetServiceType(value); return *this;}
/**
* <p>Matches the <code>origin</code> that the service uses to identify its type in
* segments.</p>
*/
inline SamplingRuleUpdate& WithServiceType(Aws::String&& value) { SetServiceType(std::move(value)); return *this;}
/**
* <p>Matches the <code>origin</code> that the service uses to identify its type in
* segments.</p>
*/
inline SamplingRuleUpdate& WithServiceType(const char* value) { SetServiceType(value); return *this;}
/**
* <p>Matches the HTTP method of a request.</p>
*/
inline const Aws::String& GetHTTPMethod() const{ return m_hTTPMethod; }
/**
* <p>Matches the HTTP method of a request.</p>
*/
inline bool HTTPMethodHasBeenSet() const { return m_hTTPMethodHasBeenSet; }
/**
* <p>Matches the HTTP method of a request.</p>
*/
inline void SetHTTPMethod(const Aws::String& value) { m_hTTPMethodHasBeenSet = true; m_hTTPMethod = value; }
/**
* <p>Matches the HTTP method of a request.</p>
*/
inline void SetHTTPMethod(Aws::String&& value) { m_hTTPMethodHasBeenSet = true; m_hTTPMethod = std::move(value); }
/**
* <p>Matches the HTTP method of a request.</p>
*/
inline void SetHTTPMethod(const char* value) { m_hTTPMethodHasBeenSet = true; m_hTTPMethod.assign(value); }
/**
* <p>Matches the HTTP method of a request.</p>
*/
inline SamplingRuleUpdate& WithHTTPMethod(const Aws::String& value) { SetHTTPMethod(value); return *this;}
/**
* <p>Matches the HTTP method of a request.</p>
*/
inline SamplingRuleUpdate& WithHTTPMethod(Aws::String&& value) { SetHTTPMethod(std::move(value)); return *this;}
/**
* <p>Matches the HTTP method of a request.</p>
*/
inline SamplingRuleUpdate& WithHTTPMethod(const char* value) { SetHTTPMethod(value); return *this;}
/**
* <p>Matches the path from a request URL.</p>
*/
inline const Aws::String& GetURLPath() const{ return m_uRLPath; }
/**
* <p>Matches the path from a request URL.</p>
*/
inline bool URLPathHasBeenSet() const { return m_uRLPathHasBeenSet; }
/**
* <p>Matches the path from a request URL.</p>
*/
inline void SetURLPath(const Aws::String& value) { m_uRLPathHasBeenSet = true; m_uRLPath = value; }
/**
* <p>Matches the path from a request URL.</p>
*/
inline void SetURLPath(Aws::String&& value) { m_uRLPathHasBeenSet = true; m_uRLPath = std::move(value); }
/**
* <p>Matches the path from a request URL.</p>
*/
inline void SetURLPath(const char* value) { m_uRLPathHasBeenSet = true; m_uRLPath.assign(value); }
/**
* <p>Matches the path from a request URL.</p>
*/
inline SamplingRuleUpdate& WithURLPath(const Aws::String& value) { SetURLPath(value); return *this;}
/**
* <p>Matches the path from a request URL.</p>
*/
inline SamplingRuleUpdate& WithURLPath(Aws::String&& value) { SetURLPath(std::move(value)); return *this;}
/**
* <p>Matches the path from a request URL.</p>
*/
inline SamplingRuleUpdate& WithURLPath(const char* value) { SetURLPath(value); return *this;}
/**
* <p>Matches attributes derived from the request.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
/**
* <p>Matches attributes derived from the request.</p>
*/
inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
/**
* <p>Matches attributes derived from the request.</p>
*/
inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
/**
* <p>Matches attributes derived from the request.</p>
*/
inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
/**
* <p>Matches attributes derived from the request.</p>
*/
inline SamplingRuleUpdate& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
/**
* <p>Matches attributes derived from the request.</p>
*/
inline SamplingRuleUpdate& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
/**
* <p>Matches attributes derived from the request.</p>
*/
inline SamplingRuleUpdate& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
/**
* <p>Matches attributes derived from the request.</p>
*/
inline SamplingRuleUpdate& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
/**
* <p>Matches attributes derived from the request.</p>
*/
inline SamplingRuleUpdate& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
/**
* <p>Matches attributes derived from the request.</p>
*/
inline SamplingRuleUpdate& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>Matches attributes derived from the request.</p>
*/
inline SamplingRuleUpdate& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
/**
* <p>Matches attributes derived from the request.</p>
*/
inline SamplingRuleUpdate& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
/**
* <p>Matches attributes derived from the request.</p>
*/
inline SamplingRuleUpdate& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
private:
Aws::String m_ruleName;
bool m_ruleNameHasBeenSet;
Aws::String m_ruleARN;
bool m_ruleARNHasBeenSet;
Aws::String m_resourceARN;
bool m_resourceARNHasBeenSet;
int m_priority;
bool m_priorityHasBeenSet;
double m_fixedRate;
bool m_fixedRateHasBeenSet;
int m_reservoirSize;
bool m_reservoirSizeHasBeenSet;
Aws::String m_host;
bool m_hostHasBeenSet;
Aws::String m_serviceName;
bool m_serviceNameHasBeenSet;
Aws::String m_serviceType;
bool m_serviceTypeHasBeenSet;
Aws::String m_hTTPMethod;
bool m_hTTPMethodHasBeenSet;
Aws::String m_uRLPath;
bool m_uRLPathHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_attributes;
bool m_attributesHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,196 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>Aggregated request sampling data for a sampling rule across all services for
* a 10 second window.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/SamplingStatisticSummary">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API SamplingStatisticSummary
{
public:
SamplingStatisticSummary();
SamplingStatisticSummary(Aws::Utils::Json::JsonView jsonValue);
SamplingStatisticSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the sampling rule.</p>
*/
inline const Aws::String& GetRuleName() const{ return m_ruleName; }
/**
* <p>The name of the sampling rule.</p>
*/
inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
/**
* <p>The name of the sampling rule.</p>
*/
inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
/**
* <p>The name of the sampling rule.</p>
*/
inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
/**
* <p>The name of the sampling rule.</p>
*/
inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
/**
* <p>The name of the sampling rule.</p>
*/
inline SamplingStatisticSummary& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
/**
* <p>The name of the sampling rule.</p>
*/
inline SamplingStatisticSummary& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
/**
* <p>The name of the sampling rule.</p>
*/
inline SamplingStatisticSummary& WithRuleName(const char* value) { SetRuleName(value); return *this;}
/**
* <p>The start time of the reporting window.</p>
*/
inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
/**
* <p>The start time of the reporting window.</p>
*/
inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
/**
* <p>The start time of the reporting window.</p>
*/
inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
/**
* <p>The start time of the reporting window.</p>
*/
inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
/**
* <p>The start time of the reporting window.</p>
*/
inline SamplingStatisticSummary& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
/**
* <p>The start time of the reporting window.</p>
*/
inline SamplingStatisticSummary& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
/**
* <p>The number of requests that matched the rule.</p>
*/
inline int GetRequestCount() const{ return m_requestCount; }
/**
* <p>The number of requests that matched the rule.</p>
*/
inline bool RequestCountHasBeenSet() const { return m_requestCountHasBeenSet; }
/**
* <p>The number of requests that matched the rule.</p>
*/
inline void SetRequestCount(int value) { m_requestCountHasBeenSet = true; m_requestCount = value; }
/**
* <p>The number of requests that matched the rule.</p>
*/
inline SamplingStatisticSummary& WithRequestCount(int value) { SetRequestCount(value); return *this;}
/**
* <p>The number of requests recorded with borrowed reservoir quota.</p>
*/
inline int GetBorrowCount() const{ return m_borrowCount; }
/**
* <p>The number of requests recorded with borrowed reservoir quota.</p>
*/
inline bool BorrowCountHasBeenSet() const { return m_borrowCountHasBeenSet; }
/**
* <p>The number of requests recorded with borrowed reservoir quota.</p>
*/
inline void SetBorrowCount(int value) { m_borrowCountHasBeenSet = true; m_borrowCount = value; }
/**
* <p>The number of requests recorded with borrowed reservoir quota.</p>
*/
inline SamplingStatisticSummary& WithBorrowCount(int value) { SetBorrowCount(value); return *this;}
/**
* <p>The number of requests recorded.</p>
*/
inline int GetSampledCount() const{ return m_sampledCount; }
/**
* <p>The number of requests recorded.</p>
*/
inline bool SampledCountHasBeenSet() const { return m_sampledCountHasBeenSet; }
/**
* <p>The number of requests recorded.</p>
*/
inline void SetSampledCount(int value) { m_sampledCountHasBeenSet = true; m_sampledCount = value; }
/**
* <p>The number of requests recorded.</p>
*/
inline SamplingStatisticSummary& WithSampledCount(int value) { SetSampledCount(value); return *this;}
private:
Aws::String m_ruleName;
bool m_ruleNameHasBeenSet;
Aws::Utils::DateTime m_timestamp;
bool m_timestampHasBeenSet;
int m_requestCount;
bool m_requestCountHasBeenSet;
int m_borrowCount;
bool m_borrowCountHasBeenSet;
int m_sampledCount;
bool m_sampledCountHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,242 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>Request sampling results for a single rule from a service. Results are for
* the last 10 seconds unless the service has been assigned a longer reporting
* interval after a previous call to <a>GetSamplingTargets</a>.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/SamplingStatisticsDocument">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API SamplingStatisticsDocument
{
public:
SamplingStatisticsDocument();
SamplingStatisticsDocument(Aws::Utils::Json::JsonView jsonValue);
SamplingStatisticsDocument& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the sampling rule.</p>
*/
inline const Aws::String& GetRuleName() const{ return m_ruleName; }
/**
* <p>The name of the sampling rule.</p>
*/
inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
/**
* <p>The name of the sampling rule.</p>
*/
inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
/**
* <p>The name of the sampling rule.</p>
*/
inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
/**
* <p>The name of the sampling rule.</p>
*/
inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
/**
* <p>The name of the sampling rule.</p>
*/
inline SamplingStatisticsDocument& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
/**
* <p>The name of the sampling rule.</p>
*/
inline SamplingStatisticsDocument& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
/**
* <p>The name of the sampling rule.</p>
*/
inline SamplingStatisticsDocument& WithRuleName(const char* value) { SetRuleName(value); return *this;}
/**
* <p>A unique identifier for the service in hexadecimal.</p>
*/
inline const Aws::String& GetClientID() const{ return m_clientID; }
/**
* <p>A unique identifier for the service in hexadecimal.</p>
*/
inline bool ClientIDHasBeenSet() const { return m_clientIDHasBeenSet; }
/**
* <p>A unique identifier for the service in hexadecimal.</p>
*/
inline void SetClientID(const Aws::String& value) { m_clientIDHasBeenSet = true; m_clientID = value; }
/**
* <p>A unique identifier for the service in hexadecimal.</p>
*/
inline void SetClientID(Aws::String&& value) { m_clientIDHasBeenSet = true; m_clientID = std::move(value); }
/**
* <p>A unique identifier for the service in hexadecimal.</p>
*/
inline void SetClientID(const char* value) { m_clientIDHasBeenSet = true; m_clientID.assign(value); }
/**
* <p>A unique identifier for the service in hexadecimal.</p>
*/
inline SamplingStatisticsDocument& WithClientID(const Aws::String& value) { SetClientID(value); return *this;}
/**
* <p>A unique identifier for the service in hexadecimal.</p>
*/
inline SamplingStatisticsDocument& WithClientID(Aws::String&& value) { SetClientID(std::move(value)); return *this;}
/**
* <p>A unique identifier for the service in hexadecimal.</p>
*/
inline SamplingStatisticsDocument& WithClientID(const char* value) { SetClientID(value); return *this;}
/**
* <p>The current time.</p>
*/
inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
/**
* <p>The current time.</p>
*/
inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
/**
* <p>The current time.</p>
*/
inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
/**
* <p>The current time.</p>
*/
inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
/**
* <p>The current time.</p>
*/
inline SamplingStatisticsDocument& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
/**
* <p>The current time.</p>
*/
inline SamplingStatisticsDocument& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
/**
* <p>The number of requests that matched the rule.</p>
*/
inline int GetRequestCount() const{ return m_requestCount; }
/**
* <p>The number of requests that matched the rule.</p>
*/
inline bool RequestCountHasBeenSet() const { return m_requestCountHasBeenSet; }
/**
* <p>The number of requests that matched the rule.</p>
*/
inline void SetRequestCount(int value) { m_requestCountHasBeenSet = true; m_requestCount = value; }
/**
* <p>The number of requests that matched the rule.</p>
*/
inline SamplingStatisticsDocument& WithRequestCount(int value) { SetRequestCount(value); return *this;}
/**
* <p>The number of requests recorded.</p>
*/
inline int GetSampledCount() const{ return m_sampledCount; }
/**
* <p>The number of requests recorded.</p>
*/
inline bool SampledCountHasBeenSet() const { return m_sampledCountHasBeenSet; }
/**
* <p>The number of requests recorded.</p>
*/
inline void SetSampledCount(int value) { m_sampledCountHasBeenSet = true; m_sampledCount = value; }
/**
* <p>The number of requests recorded.</p>
*/
inline SamplingStatisticsDocument& WithSampledCount(int value) { SetSampledCount(value); return *this;}
/**
* <p>The number of requests recorded with borrowed reservoir quota.</p>
*/
inline int GetBorrowCount() const{ return m_borrowCount; }
/**
* <p>The number of requests recorded with borrowed reservoir quota.</p>
*/
inline bool BorrowCountHasBeenSet() const { return m_borrowCountHasBeenSet; }
/**
* <p>The number of requests recorded with borrowed reservoir quota.</p>
*/
inline void SetBorrowCount(int value) { m_borrowCountHasBeenSet = true; m_borrowCount = value; }
/**
* <p>The number of requests recorded with borrowed reservoir quota.</p>
*/
inline SamplingStatisticsDocument& WithBorrowCount(int value) { SetBorrowCount(value); return *this;}
private:
Aws::String m_ruleName;
bool m_ruleNameHasBeenSet;
Aws::String m_clientID;
bool m_clientIDHasBeenSet;
Aws::Utils::DateTime m_timestamp;
bool m_timestampHasBeenSet;
int m_requestCount;
bool m_requestCountHasBeenSet;
int m_sampledCount;
bool m_sampledCountHasBeenSet;
int m_borrowCount;
bool m_borrowCountHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,103 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/model/SamplingStrategyName.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>The name and value of a sampling rule to apply to a trace
* summary.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/SamplingStrategy">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API SamplingStrategy
{
public:
SamplingStrategy();
SamplingStrategy(Aws::Utils::Json::JsonView jsonValue);
SamplingStrategy& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of a sampling rule.</p>
*/
inline const SamplingStrategyName& GetName() const{ return m_name; }
/**
* <p>The name of a sampling rule.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of a sampling rule.</p>
*/
inline void SetName(const SamplingStrategyName& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of a sampling rule.</p>
*/
inline void SetName(SamplingStrategyName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of a sampling rule.</p>
*/
inline SamplingStrategy& WithName(const SamplingStrategyName& value) { SetName(value); return *this;}
/**
* <p>The name of a sampling rule.</p>
*/
inline SamplingStrategy& WithName(SamplingStrategyName&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The value of a sampling rule.</p>
*/
inline double GetValue() const{ return m_value; }
/**
* <p>The value of a sampling rule.</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The value of a sampling rule.</p>
*/
inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The value of a sampling rule.</p>
*/
inline SamplingStrategy& WithValue(double value) { SetValue(value); return *this;}
private:
SamplingStrategyName m_name;
bool m_nameHasBeenSet;
double m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace XRay
{
namespace Model
{
enum class SamplingStrategyName
{
NOT_SET,
PartialScan,
FixedRate
};
namespace SamplingStrategyNameMapper
{
AWS_XRAY_API SamplingStrategyName GetSamplingStrategyNameForName(const Aws::String& name);
AWS_XRAY_API Aws::String GetNameForSamplingStrategyName(SamplingStrategyName value);
} // namespace SamplingStrategyNameMapper
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,206 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>Temporary changes to a sampling rule configuration. To meet the global
* sampling target for a rule, X-Ray calculates a new reservoir for each service
* based on the recent sampling results of all services that called
* <a>GetSamplingTargets</a>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/SamplingTargetDocument">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API SamplingTargetDocument
{
public:
SamplingTargetDocument();
SamplingTargetDocument(Aws::Utils::Json::JsonView jsonValue);
SamplingTargetDocument& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the sampling rule.</p>
*/
inline const Aws::String& GetRuleName() const{ return m_ruleName; }
/**
* <p>The name of the sampling rule.</p>
*/
inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
/**
* <p>The name of the sampling rule.</p>
*/
inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
/**
* <p>The name of the sampling rule.</p>
*/
inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
/**
* <p>The name of the sampling rule.</p>
*/
inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
/**
* <p>The name of the sampling rule.</p>
*/
inline SamplingTargetDocument& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
/**
* <p>The name of the sampling rule.</p>
*/
inline SamplingTargetDocument& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
/**
* <p>The name of the sampling rule.</p>
*/
inline SamplingTargetDocument& WithRuleName(const char* value) { SetRuleName(value); return *this;}
/**
* <p>The percentage of matching requests to instrument, after the reservoir is
* exhausted.</p>
*/
inline double GetFixedRate() const{ return m_fixedRate; }
/**
* <p>The percentage of matching requests to instrument, after the reservoir is
* exhausted.</p>
*/
inline bool FixedRateHasBeenSet() const { return m_fixedRateHasBeenSet; }
/**
* <p>The percentage of matching requests to instrument, after the reservoir is
* exhausted.</p>
*/
inline void SetFixedRate(double value) { m_fixedRateHasBeenSet = true; m_fixedRate = value; }
/**
* <p>The percentage of matching requests to instrument, after the reservoir is
* exhausted.</p>
*/
inline SamplingTargetDocument& WithFixedRate(double value) { SetFixedRate(value); return *this;}
/**
* <p>The number of requests per second that X-Ray allocated this service.</p>
*/
inline int GetReservoirQuota() const{ return m_reservoirQuota; }
/**
* <p>The number of requests per second that X-Ray allocated this service.</p>
*/
inline bool ReservoirQuotaHasBeenSet() const { return m_reservoirQuotaHasBeenSet; }
/**
* <p>The number of requests per second that X-Ray allocated this service.</p>
*/
inline void SetReservoirQuota(int value) { m_reservoirQuotaHasBeenSet = true; m_reservoirQuota = value; }
/**
* <p>The number of requests per second that X-Ray allocated this service.</p>
*/
inline SamplingTargetDocument& WithReservoirQuota(int value) { SetReservoirQuota(value); return *this;}
/**
* <p>When the reservoir quota expires.</p>
*/
inline const Aws::Utils::DateTime& GetReservoirQuotaTTL() const{ return m_reservoirQuotaTTL; }
/**
* <p>When the reservoir quota expires.</p>
*/
inline bool ReservoirQuotaTTLHasBeenSet() const { return m_reservoirQuotaTTLHasBeenSet; }
/**
* <p>When the reservoir quota expires.</p>
*/
inline void SetReservoirQuotaTTL(const Aws::Utils::DateTime& value) { m_reservoirQuotaTTLHasBeenSet = true; m_reservoirQuotaTTL = value; }
/**
* <p>When the reservoir quota expires.</p>
*/
inline void SetReservoirQuotaTTL(Aws::Utils::DateTime&& value) { m_reservoirQuotaTTLHasBeenSet = true; m_reservoirQuotaTTL = std::move(value); }
/**
* <p>When the reservoir quota expires.</p>
*/
inline SamplingTargetDocument& WithReservoirQuotaTTL(const Aws::Utils::DateTime& value) { SetReservoirQuotaTTL(value); return *this;}
/**
* <p>When the reservoir quota expires.</p>
*/
inline SamplingTargetDocument& WithReservoirQuotaTTL(Aws::Utils::DateTime&& value) { SetReservoirQuotaTTL(std::move(value)); return *this;}
/**
* <p>The number of seconds for the service to wait before getting sampling targets
* again.</p>
*/
inline int GetInterval() const{ return m_interval; }
/**
* <p>The number of seconds for the service to wait before getting sampling targets
* again.</p>
*/
inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
/**
* <p>The number of seconds for the service to wait before getting sampling targets
* again.</p>
*/
inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; }
/**
* <p>The number of seconds for the service to wait before getting sampling targets
* again.</p>
*/
inline SamplingTargetDocument& WithInterval(int value) { SetInterval(value); return *this;}
private:
Aws::String m_ruleName;
bool m_ruleNameHasBeenSet;
double m_fixedRate;
bool m_fixedRateHasBeenSet;
int m_reservoirQuota;
bool m_reservoirQuotaHasBeenSet;
Aws::Utils::DateTime m_reservoirQuotaTTL;
bool m_reservoirQuotaTTLHasBeenSet;
int m_interval;
bool m_intervalHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,139 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_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 XRay
{
namespace Model
{
/**
* <p>A segment from a trace that has been ingested by the X-Ray service. The
* segment can be compiled from documents uploaded with <a>PutTraceSegments</a>, or
* an <code>inferred</code> segment for a downstream service, generated from a
* subsegment sent by the service that called it.</p> <p>For the full segment
* document schema, see <a
* href="https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html">AWS
* X-Ray Segment Documents</a> in the <i>AWS X-Ray Developer
* Guide</i>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/Segment">AWS API
* Reference</a></p>
*/
class AWS_XRAY_API Segment
{
public:
Segment();
Segment(Aws::Utils::Json::JsonView jsonValue);
Segment& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The segment's ID.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The segment's ID.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The segment's ID.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The segment's ID.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The segment's ID.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The segment's ID.</p>
*/
inline Segment& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The segment's ID.</p>
*/
inline Segment& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The segment's ID.</p>
*/
inline Segment& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The segment document.</p>
*/
inline const Aws::String& GetDocument() const{ return m_document; }
/**
* <p>The segment document.</p>
*/
inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
/**
* <p>The segment document.</p>
*/
inline void SetDocument(const Aws::String& value) { m_documentHasBeenSet = true; m_document = value; }
/**
* <p>The segment document.</p>
*/
inline void SetDocument(Aws::String&& value) { m_documentHasBeenSet = true; m_document = std::move(value); }
/**
* <p>The segment document.</p>
*/
inline void SetDocument(const char* value) { m_documentHasBeenSet = true; m_document.assign(value); }
/**
* <p>The segment document.</p>
*/
inline Segment& WithDocument(const Aws::String& value) { SetDocument(value); return *this;}
/**
* <p>The segment document.</p>
*/
inline Segment& WithDocument(Aws::String&& value) { SetDocument(std::move(value)); return *this;}
/**
* <p>The segment document.</p>
*/
inline Segment& WithDocument(const char* value) { SetDocument(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_document;
bool m_documentHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,622 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/DateTime.h>
#include <aws/xray/model/ServiceStatistics.h>
#include <aws/xray/model/Edge.h>
#include <aws/xray/model/HistogramEntry.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>Information about an application that processed requests, users that made
* requests, or downstream services, resources and applications that an application
* used.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/Service">AWS API
* Reference</a></p>
*/
class AWS_XRAY_API Service
{
public:
Service();
Service(Aws::Utils::Json::JsonView jsonValue);
Service& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Identifier for the service. Unique within the service map.</p>
*/
inline int GetReferenceId() const{ return m_referenceId; }
/**
* <p>Identifier for the service. Unique within the service map.</p>
*/
inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; }
/**
* <p>Identifier for the service. Unique within the service map.</p>
*/
inline void SetReferenceId(int value) { m_referenceIdHasBeenSet = true; m_referenceId = value; }
/**
* <p>Identifier for the service. Unique within the service map.</p>
*/
inline Service& WithReferenceId(int value) { SetReferenceId(value); return *this;}
/**
* <p>The canonical name of the service.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The canonical name of the service.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The canonical name of the service.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The canonical name of the service.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The canonical name of the service.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The canonical name of the service.</p>
*/
inline Service& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The canonical name of the service.</p>
*/
inline Service& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The canonical name of the service.</p>
*/
inline Service& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A list of names for the service, including the canonical name.</p>
*/
inline const Aws::Vector<Aws::String>& GetNames() const{ return m_names; }
/**
* <p>A list of names for the service, including the canonical name.</p>
*/
inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
/**
* <p>A list of names for the service, including the canonical name.</p>
*/
inline void SetNames(const Aws::Vector<Aws::String>& value) { m_namesHasBeenSet = true; m_names = value; }
/**
* <p>A list of names for the service, including the canonical name.</p>
*/
inline void SetNames(Aws::Vector<Aws::String>&& value) { m_namesHasBeenSet = true; m_names = std::move(value); }
/**
* <p>A list of names for the service, including the canonical name.</p>
*/
inline Service& WithNames(const Aws::Vector<Aws::String>& value) { SetNames(value); return *this;}
/**
* <p>A list of names for the service, including the canonical name.</p>
*/
inline Service& WithNames(Aws::Vector<Aws::String>&& value) { SetNames(std::move(value)); return *this;}
/**
* <p>A list of names for the service, including the canonical name.</p>
*/
inline Service& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
/**
* <p>A list of names for the service, including the canonical name.</p>
*/
inline Service& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; }
/**
* <p>A list of names for the service, including the canonical name.</p>
*/
inline Service& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
/**
* <p>Indicates that the service was the first service to process a request.</p>
*/
inline bool GetRoot() const{ return m_root; }
/**
* <p>Indicates that the service was the first service to process a request.</p>
*/
inline bool RootHasBeenSet() const { return m_rootHasBeenSet; }
/**
* <p>Indicates that the service was the first service to process a request.</p>
*/
inline void SetRoot(bool value) { m_rootHasBeenSet = true; m_root = value; }
/**
* <p>Indicates that the service was the first service to process a request.</p>
*/
inline Service& WithRoot(bool value) { SetRoot(value); return *this;}
/**
* <p>Identifier of the AWS account in which the service runs.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>Identifier of the AWS account in which the service runs.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>Identifier of the AWS account in which the service runs.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>Identifier of the AWS account in which the service runs.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>Identifier of the AWS account in which the service runs.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>Identifier of the AWS account in which the service runs.</p>
*/
inline Service& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>Identifier of the AWS account in which the service runs.</p>
*/
inline Service& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>Identifier of the AWS account in which the service runs.</p>
*/
inline Service& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The type of service.</p> <ul> <li> <p>AWS Resource - The type of an AWS
* resource. For example, <code>AWS::EC2::Instance</code> for a application running
* on Amazon EC2 or <code>AWS::DynamoDB::Table</code> for an Amazon DynamoDB table
* that the application used.</p> </li> <li> <p>AWS Service - The type of an AWS
* service. For example, <code>AWS::DynamoDB</code> for downstream calls to Amazon
* DynamoDB that didn't target a specific table.</p> </li> <li> <p>
* <code>client</code> - Represents the clients that sent requests to a root
* service.</p> </li> <li> <p> <code>remote</code> - A downstream service of
* indeterminate type.</p> </li> </ul>
*/
inline const Aws::String& GetType() const{ return m_type; }
/**
* <p>The type of service.</p> <ul> <li> <p>AWS Resource - The type of an AWS
* resource. For example, <code>AWS::EC2::Instance</code> for a application running
* on Amazon EC2 or <code>AWS::DynamoDB::Table</code> for an Amazon DynamoDB table
* that the application used.</p> </li> <li> <p>AWS Service - The type of an AWS
* service. For example, <code>AWS::DynamoDB</code> for downstream calls to Amazon
* DynamoDB that didn't target a specific table.</p> </li> <li> <p>
* <code>client</code> - Represents the clients that sent requests to a root
* service.</p> </li> <li> <p> <code>remote</code> - A downstream service of
* indeterminate type.</p> </li> </ul>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of service.</p> <ul> <li> <p>AWS Resource - The type of an AWS
* resource. For example, <code>AWS::EC2::Instance</code> for a application running
* on Amazon EC2 or <code>AWS::DynamoDB::Table</code> for an Amazon DynamoDB table
* that the application used.</p> </li> <li> <p>AWS Service - The type of an AWS
* service. For example, <code>AWS::DynamoDB</code> for downstream calls to Amazon
* DynamoDB that didn't target a specific table.</p> </li> <li> <p>
* <code>client</code> - Represents the clients that sent requests to a root
* service.</p> </li> <li> <p> <code>remote</code> - A downstream service of
* indeterminate type.</p> </li> </ul>
*/
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of service.</p> <ul> <li> <p>AWS Resource - The type of an AWS
* resource. For example, <code>AWS::EC2::Instance</code> for a application running
* on Amazon EC2 or <code>AWS::DynamoDB::Table</code> for an Amazon DynamoDB table
* that the application used.</p> </li> <li> <p>AWS Service - The type of an AWS
* service. For example, <code>AWS::DynamoDB</code> for downstream calls to Amazon
* DynamoDB that didn't target a specific table.</p> </li> <li> <p>
* <code>client</code> - Represents the clients that sent requests to a root
* service.</p> </li> <li> <p> <code>remote</code> - A downstream service of
* indeterminate type.</p> </li> </ul>
*/
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type of service.</p> <ul> <li> <p>AWS Resource - The type of an AWS
* resource. For example, <code>AWS::EC2::Instance</code> for a application running
* on Amazon EC2 or <code>AWS::DynamoDB::Table</code> for an Amazon DynamoDB table
* that the application used.</p> </li> <li> <p>AWS Service - The type of an AWS
* service. For example, <code>AWS::DynamoDB</code> for downstream calls to Amazon
* DynamoDB that didn't target a specific table.</p> </li> <li> <p>
* <code>client</code> - Represents the clients that sent requests to a root
* service.</p> </li> <li> <p> <code>remote</code> - A downstream service of
* indeterminate type.</p> </li> </ul>
*/
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
/**
* <p>The type of service.</p> <ul> <li> <p>AWS Resource - The type of an AWS
* resource. For example, <code>AWS::EC2::Instance</code> for a application running
* on Amazon EC2 or <code>AWS::DynamoDB::Table</code> for an Amazon DynamoDB table
* that the application used.</p> </li> <li> <p>AWS Service - The type of an AWS
* service. For example, <code>AWS::DynamoDB</code> for downstream calls to Amazon
* DynamoDB that didn't target a specific table.</p> </li> <li> <p>
* <code>client</code> - Represents the clients that sent requests to a root
* service.</p> </li> <li> <p> <code>remote</code> - A downstream service of
* indeterminate type.</p> </li> </ul>
*/
inline Service& WithType(const Aws::String& value) { SetType(value); return *this;}
/**
* <p>The type of service.</p> <ul> <li> <p>AWS Resource - The type of an AWS
* resource. For example, <code>AWS::EC2::Instance</code> for a application running
* on Amazon EC2 or <code>AWS::DynamoDB::Table</code> for an Amazon DynamoDB table
* that the application used.</p> </li> <li> <p>AWS Service - The type of an AWS
* service. For example, <code>AWS::DynamoDB</code> for downstream calls to Amazon
* DynamoDB that didn't target a specific table.</p> </li> <li> <p>
* <code>client</code> - Represents the clients that sent requests to a root
* service.</p> </li> <li> <p> <code>remote</code> - A downstream service of
* indeterminate type.</p> </li> </ul>
*/
inline Service& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The type of service.</p> <ul> <li> <p>AWS Resource - The type of an AWS
* resource. For example, <code>AWS::EC2::Instance</code> for a application running
* on Amazon EC2 or <code>AWS::DynamoDB::Table</code> for an Amazon DynamoDB table
* that the application used.</p> </li> <li> <p>AWS Service - The type of an AWS
* service. For example, <code>AWS::DynamoDB</code> for downstream calls to Amazon
* DynamoDB that didn't target a specific table.</p> </li> <li> <p>
* <code>client</code> - Represents the clients that sent requests to a root
* service.</p> </li> <li> <p> <code>remote</code> - A downstream service of
* indeterminate type.</p> </li> </ul>
*/
inline Service& WithType(const char* value) { SetType(value); return *this;}
/**
* <p>The service's state.</p>
*/
inline const Aws::String& GetState() const{ return m_state; }
/**
* <p>The service's state.</p>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The service's state.</p>
*/
inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The service's state.</p>
*/
inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The service's state.</p>
*/
inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
/**
* <p>The service's state.</p>
*/
inline Service& WithState(const Aws::String& value) { SetState(value); return *this;}
/**
* <p>The service's state.</p>
*/
inline Service& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The service's state.</p>
*/
inline Service& WithState(const char* value) { SetState(value); return *this;}
/**
* <p>The start time of the first segment that the service generated.</p>
*/
inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
/**
* <p>The start time of the first segment that the service generated.</p>
*/
inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
/**
* <p>The start time of the first segment that the service generated.</p>
*/
inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
/**
* <p>The start time of the first segment that the service generated.</p>
*/
inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
/**
* <p>The start time of the first segment that the service generated.</p>
*/
inline Service& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
/**
* <p>The start time of the first segment that the service generated.</p>
*/
inline Service& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
/**
* <p>The end time of the last segment that the service generated.</p>
*/
inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
/**
* <p>The end time of the last segment that the service generated.</p>
*/
inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
/**
* <p>The end time of the last segment that the service generated.</p>
*/
inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
/**
* <p>The end time of the last segment that the service generated.</p>
*/
inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
/**
* <p>The end time of the last segment that the service generated.</p>
*/
inline Service& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
/**
* <p>The end time of the last segment that the service generated.</p>
*/
inline Service& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
/**
* <p>Connections to downstream services.</p>
*/
inline const Aws::Vector<Edge>& GetEdges() const{ return m_edges; }
/**
* <p>Connections to downstream services.</p>
*/
inline bool EdgesHasBeenSet() const { return m_edgesHasBeenSet; }
/**
* <p>Connections to downstream services.</p>
*/
inline void SetEdges(const Aws::Vector<Edge>& value) { m_edgesHasBeenSet = true; m_edges = value; }
/**
* <p>Connections to downstream services.</p>
*/
inline void SetEdges(Aws::Vector<Edge>&& value) { m_edgesHasBeenSet = true; m_edges = std::move(value); }
/**
* <p>Connections to downstream services.</p>
*/
inline Service& WithEdges(const Aws::Vector<Edge>& value) { SetEdges(value); return *this;}
/**
* <p>Connections to downstream services.</p>
*/
inline Service& WithEdges(Aws::Vector<Edge>&& value) { SetEdges(std::move(value)); return *this;}
/**
* <p>Connections to downstream services.</p>
*/
inline Service& AddEdges(const Edge& value) { m_edgesHasBeenSet = true; m_edges.push_back(value); return *this; }
/**
* <p>Connections to downstream services.</p>
*/
inline Service& AddEdges(Edge&& value) { m_edgesHasBeenSet = true; m_edges.push_back(std::move(value)); return *this; }
/**
* <p>Aggregated statistics for the service.</p>
*/
inline const ServiceStatistics& GetSummaryStatistics() const{ return m_summaryStatistics; }
/**
* <p>Aggregated statistics for the service.</p>
*/
inline bool SummaryStatisticsHasBeenSet() const { return m_summaryStatisticsHasBeenSet; }
/**
* <p>Aggregated statistics for the service.</p>
*/
inline void SetSummaryStatistics(const ServiceStatistics& value) { m_summaryStatisticsHasBeenSet = true; m_summaryStatistics = value; }
/**
* <p>Aggregated statistics for the service.</p>
*/
inline void SetSummaryStatistics(ServiceStatistics&& value) { m_summaryStatisticsHasBeenSet = true; m_summaryStatistics = std::move(value); }
/**
* <p>Aggregated statistics for the service.</p>
*/
inline Service& WithSummaryStatistics(const ServiceStatistics& value) { SetSummaryStatistics(value); return *this;}
/**
* <p>Aggregated statistics for the service.</p>
*/
inline Service& WithSummaryStatistics(ServiceStatistics&& value) { SetSummaryStatistics(std::move(value)); return *this;}
/**
* <p>A histogram that maps the spread of service durations.</p>
*/
inline const Aws::Vector<HistogramEntry>& GetDurationHistogram() const{ return m_durationHistogram; }
/**
* <p>A histogram that maps the spread of service durations.</p>
*/
inline bool DurationHistogramHasBeenSet() const { return m_durationHistogramHasBeenSet; }
/**
* <p>A histogram that maps the spread of service durations.</p>
*/
inline void SetDurationHistogram(const Aws::Vector<HistogramEntry>& value) { m_durationHistogramHasBeenSet = true; m_durationHistogram = value; }
/**
* <p>A histogram that maps the spread of service durations.</p>
*/
inline void SetDurationHistogram(Aws::Vector<HistogramEntry>&& value) { m_durationHistogramHasBeenSet = true; m_durationHistogram = std::move(value); }
/**
* <p>A histogram that maps the spread of service durations.</p>
*/
inline Service& WithDurationHistogram(const Aws::Vector<HistogramEntry>& value) { SetDurationHistogram(value); return *this;}
/**
* <p>A histogram that maps the spread of service durations.</p>
*/
inline Service& WithDurationHistogram(Aws::Vector<HistogramEntry>&& value) { SetDurationHistogram(std::move(value)); return *this;}
/**
* <p>A histogram that maps the spread of service durations.</p>
*/
inline Service& AddDurationHistogram(const HistogramEntry& value) { m_durationHistogramHasBeenSet = true; m_durationHistogram.push_back(value); return *this; }
/**
* <p>A histogram that maps the spread of service durations.</p>
*/
inline Service& AddDurationHistogram(HistogramEntry&& value) { m_durationHistogramHasBeenSet = true; m_durationHistogram.push_back(std::move(value)); return *this; }
/**
* <p>A histogram that maps the spread of service response times.</p>
*/
inline const Aws::Vector<HistogramEntry>& GetResponseTimeHistogram() const{ return m_responseTimeHistogram; }
/**
* <p>A histogram that maps the spread of service response times.</p>
*/
inline bool ResponseTimeHistogramHasBeenSet() const { return m_responseTimeHistogramHasBeenSet; }
/**
* <p>A histogram that maps the spread of service response times.</p>
*/
inline void SetResponseTimeHistogram(const Aws::Vector<HistogramEntry>& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram = value; }
/**
* <p>A histogram that maps the spread of service response times.</p>
*/
inline void SetResponseTimeHistogram(Aws::Vector<HistogramEntry>&& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram = std::move(value); }
/**
* <p>A histogram that maps the spread of service response times.</p>
*/
inline Service& WithResponseTimeHistogram(const Aws::Vector<HistogramEntry>& value) { SetResponseTimeHistogram(value); return *this;}
/**
* <p>A histogram that maps the spread of service response times.</p>
*/
inline Service& WithResponseTimeHistogram(Aws::Vector<HistogramEntry>&& value) { SetResponseTimeHistogram(std::move(value)); return *this;}
/**
* <p>A histogram that maps the spread of service response times.</p>
*/
inline Service& AddResponseTimeHistogram(const HistogramEntry& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram.push_back(value); return *this; }
/**
* <p>A histogram that maps the spread of service response times.</p>
*/
inline Service& AddResponseTimeHistogram(HistogramEntry&& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram.push_back(std::move(value)); return *this; }
private:
int m_referenceId;
bool m_referenceIdHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Vector<Aws::String> m_names;
bool m_namesHasBeenSet;
bool m_root;
bool m_rootHasBeenSet;
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_type;
bool m_typeHasBeenSet;
Aws::String m_state;
bool m_stateHasBeenSet;
Aws::Utils::DateTime m_startTime;
bool m_startTimeHasBeenSet;
Aws::Utils::DateTime m_endTime;
bool m_endTimeHasBeenSet;
Aws::Vector<Edge> m_edges;
bool m_edgesHasBeenSet;
ServiceStatistics m_summaryStatistics;
bool m_summaryStatisticsHasBeenSet;
Aws::Vector<HistogramEntry> m_durationHistogram;
bool m_durationHistogramHasBeenSet;
Aws::Vector<HistogramEntry> m_responseTimeHistogram;
bool m_responseTimeHistogramHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,226 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_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 XRay
{
namespace Model
{
/**
* <p/><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ServiceId">AWS API
* Reference</a></p>
*/
class AWS_XRAY_API ServiceId
{
public:
ServiceId();
ServiceId(Aws::Utils::Json::JsonView jsonValue);
ServiceId& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p/>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p/>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p/>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p/>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p/>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p/>
*/
inline ServiceId& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p/>
*/
inline ServiceId& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p/>
*/
inline ServiceId& WithName(const char* value) { SetName(value); return *this;}
/**
* <p/>
*/
inline const Aws::Vector<Aws::String>& GetNames() const{ return m_names; }
/**
* <p/>
*/
inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
/**
* <p/>
*/
inline void SetNames(const Aws::Vector<Aws::String>& value) { m_namesHasBeenSet = true; m_names = value; }
/**
* <p/>
*/
inline void SetNames(Aws::Vector<Aws::String>&& value) { m_namesHasBeenSet = true; m_names = std::move(value); }
/**
* <p/>
*/
inline ServiceId& WithNames(const Aws::Vector<Aws::String>& value) { SetNames(value); return *this;}
/**
* <p/>
*/
inline ServiceId& WithNames(Aws::Vector<Aws::String>&& value) { SetNames(std::move(value)); return *this;}
/**
* <p/>
*/
inline ServiceId& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
/**
* <p/>
*/
inline ServiceId& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; }
/**
* <p/>
*/
inline ServiceId& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
/**
* <p/>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p/>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p/>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p/>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p/>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p/>
*/
inline ServiceId& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p/>
*/
inline ServiceId& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p/>
*/
inline ServiceId& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p/>
*/
inline const Aws::String& GetType() const{ return m_type; }
/**
* <p/>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p/>
*/
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p/>
*/
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p/>
*/
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
/**
* <p/>
*/
inline ServiceId& WithType(const Aws::String& value) { SetType(value); return *this;}
/**
* <p/>
*/
inline ServiceId& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
/**
* <p/>
*/
inline ServiceId& WithType(const char* value) { SetType(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Vector<Aws::String> m_names;
bool m_namesHasBeenSet;
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_type;
bool m_typeHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,197 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/model/ErrorStatistics.h>
#include <aws/xray/model/FaultStatistics.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>Response statistics for a service.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ServiceStatistics">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API ServiceStatistics
{
public:
ServiceStatistics();
ServiceStatistics(Aws::Utils::Json::JsonView jsonValue);
ServiceStatistics& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The number of requests that completed with a 2xx Success status code.</p>
*/
inline long long GetOkCount() const{ return m_okCount; }
/**
* <p>The number of requests that completed with a 2xx Success status code.</p>
*/
inline bool OkCountHasBeenSet() const { return m_okCountHasBeenSet; }
/**
* <p>The number of requests that completed with a 2xx Success status code.</p>
*/
inline void SetOkCount(long long value) { m_okCountHasBeenSet = true; m_okCount = value; }
/**
* <p>The number of requests that completed with a 2xx Success status code.</p>
*/
inline ServiceStatistics& WithOkCount(long long value) { SetOkCount(value); return *this;}
/**
* <p>Information about requests that failed with a 4xx Client Error status
* code.</p>
*/
inline const ErrorStatistics& GetErrorStatistics() const{ return m_errorStatistics; }
/**
* <p>Information about requests that failed with a 4xx Client Error status
* code.</p>
*/
inline bool ErrorStatisticsHasBeenSet() const { return m_errorStatisticsHasBeenSet; }
/**
* <p>Information about requests that failed with a 4xx Client Error status
* code.</p>
*/
inline void SetErrorStatistics(const ErrorStatistics& value) { m_errorStatisticsHasBeenSet = true; m_errorStatistics = value; }
/**
* <p>Information about requests that failed with a 4xx Client Error status
* code.</p>
*/
inline void SetErrorStatistics(ErrorStatistics&& value) { m_errorStatisticsHasBeenSet = true; m_errorStatistics = std::move(value); }
/**
* <p>Information about requests that failed with a 4xx Client Error status
* code.</p>
*/
inline ServiceStatistics& WithErrorStatistics(const ErrorStatistics& value) { SetErrorStatistics(value); return *this;}
/**
* <p>Information about requests that failed with a 4xx Client Error status
* code.</p>
*/
inline ServiceStatistics& WithErrorStatistics(ErrorStatistics&& value) { SetErrorStatistics(std::move(value)); return *this;}
/**
* <p>Information about requests that failed with a 5xx Server Error status
* code.</p>
*/
inline const FaultStatistics& GetFaultStatistics() const{ return m_faultStatistics; }
/**
* <p>Information about requests that failed with a 5xx Server Error status
* code.</p>
*/
inline bool FaultStatisticsHasBeenSet() const { return m_faultStatisticsHasBeenSet; }
/**
* <p>Information about requests that failed with a 5xx Server Error status
* code.</p>
*/
inline void SetFaultStatistics(const FaultStatistics& value) { m_faultStatisticsHasBeenSet = true; m_faultStatistics = value; }
/**
* <p>Information about requests that failed with a 5xx Server Error status
* code.</p>
*/
inline void SetFaultStatistics(FaultStatistics&& value) { m_faultStatisticsHasBeenSet = true; m_faultStatistics = std::move(value); }
/**
* <p>Information about requests that failed with a 5xx Server Error status
* code.</p>
*/
inline ServiceStatistics& WithFaultStatistics(const FaultStatistics& value) { SetFaultStatistics(value); return *this;}
/**
* <p>Information about requests that failed with a 5xx Server Error status
* code.</p>
*/
inline ServiceStatistics& WithFaultStatistics(FaultStatistics&& value) { SetFaultStatistics(std::move(value)); return *this;}
/**
* <p>The total number of completed requests.</p>
*/
inline long long GetTotalCount() const{ return m_totalCount; }
/**
* <p>The total number of completed requests.</p>
*/
inline bool TotalCountHasBeenSet() const { return m_totalCountHasBeenSet; }
/**
* <p>The total number of completed requests.</p>
*/
inline void SetTotalCount(long long value) { m_totalCountHasBeenSet = true; m_totalCount = value; }
/**
* <p>The total number of completed requests.</p>
*/
inline ServiceStatistics& WithTotalCount(long long value) { SetTotalCount(value); return *this;}
/**
* <p>The aggregate response time of completed requests.</p>
*/
inline double GetTotalResponseTime() const{ return m_totalResponseTime; }
/**
* <p>The aggregate response time of completed requests.</p>
*/
inline bool TotalResponseTimeHasBeenSet() const { return m_totalResponseTimeHasBeenSet; }
/**
* <p>The aggregate response time of completed requests.</p>
*/
inline void SetTotalResponseTime(double value) { m_totalResponseTimeHasBeenSet = true; m_totalResponseTime = value; }
/**
* <p>The aggregate response time of completed requests.</p>
*/
inline ServiceStatistics& WithTotalResponseTime(double value) { SetTotalResponseTime(value); return *this;}
private:
long long m_okCount;
bool m_okCountHasBeenSet;
ErrorStatistics m_errorStatistics;
bool m_errorStatisticsHasBeenSet;
FaultStatistics m_faultStatistics;
bool m_faultStatisticsHasBeenSet;
long long m_totalCount;
bool m_totalCountHasBeenSet;
double m_totalResponseTime;
bool m_totalResponseTimeHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,95 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_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 XRay
{
namespace Model
{
class AWS_XRAY_API Tag
{
public:
Tag();
Tag(Aws::Utils::Json::JsonView jsonValue);
Tag& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const Aws::String& GetKey() const{ return m_key; }
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
inline const Aws::String& GetValue() const{ return m_value; }
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
private:
Aws::String m_key;
bool m_keyHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,97 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/XRayRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/xray/model/Tag.h>
#include <utility>
namespace Aws
{
namespace XRay
{
namespace Model
{
/**
*/
class AWS_XRAY_API TagResourceRequest : public XRayRequest
{
public:
TagResourceRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "TagResource"; }
Aws::String SerializePayload() const override;
inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
inline TagResourceRequest& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
inline TagResourceRequest& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
inline TagResourceRequest& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
inline TagResourceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
inline TagResourceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
inline TagResourceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
inline TagResourceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_resourceARN;
bool m_resourceARNHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
class AWS_XRAY_API TagResourceResult
{
public:
TagResourceResult();
TagResourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
TagResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,209 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/DateTime.h>
#include <aws/xray/model/BackendConnectionErrors.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p/><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/TelemetryRecord">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API TelemetryRecord
{
public:
TelemetryRecord();
TelemetryRecord(Aws::Utils::Json::JsonView jsonValue);
TelemetryRecord& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p/>
*/
inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
/**
* <p/>
*/
inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
/**
* <p/>
*/
inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
/**
* <p/>
*/
inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
/**
* <p/>
*/
inline TelemetryRecord& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
/**
* <p/>
*/
inline TelemetryRecord& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
/**
* <p/>
*/
inline int GetSegmentsReceivedCount() const{ return m_segmentsReceivedCount; }
/**
* <p/>
*/
inline bool SegmentsReceivedCountHasBeenSet() const { return m_segmentsReceivedCountHasBeenSet; }
/**
* <p/>
*/
inline void SetSegmentsReceivedCount(int value) { m_segmentsReceivedCountHasBeenSet = true; m_segmentsReceivedCount = value; }
/**
* <p/>
*/
inline TelemetryRecord& WithSegmentsReceivedCount(int value) { SetSegmentsReceivedCount(value); return *this;}
/**
* <p/>
*/
inline int GetSegmentsSentCount() const{ return m_segmentsSentCount; }
/**
* <p/>
*/
inline bool SegmentsSentCountHasBeenSet() const { return m_segmentsSentCountHasBeenSet; }
/**
* <p/>
*/
inline void SetSegmentsSentCount(int value) { m_segmentsSentCountHasBeenSet = true; m_segmentsSentCount = value; }
/**
* <p/>
*/
inline TelemetryRecord& WithSegmentsSentCount(int value) { SetSegmentsSentCount(value); return *this;}
/**
* <p/>
*/
inline int GetSegmentsSpilloverCount() const{ return m_segmentsSpilloverCount; }
/**
* <p/>
*/
inline bool SegmentsSpilloverCountHasBeenSet() const { return m_segmentsSpilloverCountHasBeenSet; }
/**
* <p/>
*/
inline void SetSegmentsSpilloverCount(int value) { m_segmentsSpilloverCountHasBeenSet = true; m_segmentsSpilloverCount = value; }
/**
* <p/>
*/
inline TelemetryRecord& WithSegmentsSpilloverCount(int value) { SetSegmentsSpilloverCount(value); return *this;}
/**
* <p/>
*/
inline int GetSegmentsRejectedCount() const{ return m_segmentsRejectedCount; }
/**
* <p/>
*/
inline bool SegmentsRejectedCountHasBeenSet() const { return m_segmentsRejectedCountHasBeenSet; }
/**
* <p/>
*/
inline void SetSegmentsRejectedCount(int value) { m_segmentsRejectedCountHasBeenSet = true; m_segmentsRejectedCount = value; }
/**
* <p/>
*/
inline TelemetryRecord& WithSegmentsRejectedCount(int value) { SetSegmentsRejectedCount(value); return *this;}
/**
* <p/>
*/
inline const BackendConnectionErrors& GetBackendConnectionErrors() const{ return m_backendConnectionErrors; }
/**
* <p/>
*/
inline bool BackendConnectionErrorsHasBeenSet() const { return m_backendConnectionErrorsHasBeenSet; }
/**
* <p/>
*/
inline void SetBackendConnectionErrors(const BackendConnectionErrors& value) { m_backendConnectionErrorsHasBeenSet = true; m_backendConnectionErrors = value; }
/**
* <p/>
*/
inline void SetBackendConnectionErrors(BackendConnectionErrors&& value) { m_backendConnectionErrorsHasBeenSet = true; m_backendConnectionErrors = std::move(value); }
/**
* <p/>
*/
inline TelemetryRecord& WithBackendConnectionErrors(const BackendConnectionErrors& value) { SetBackendConnectionErrors(value); return *this;}
/**
* <p/>
*/
inline TelemetryRecord& WithBackendConnectionErrors(BackendConnectionErrors&& value) { SetBackendConnectionErrors(std::move(value)); return *this;}
private:
Aws::Utils::DateTime m_timestamp;
bool m_timestampHasBeenSet;
int m_segmentsReceivedCount;
bool m_segmentsReceivedCountHasBeenSet;
int m_segmentsSentCount;
bool m_segmentsSentCountHasBeenSet;
int m_segmentsSpilloverCount;
bool m_segmentsSpilloverCountHasBeenSet;
int m_segmentsRejectedCount;
bool m_segmentsRejectedCountHasBeenSet;
BackendConnectionErrors m_backendConnectionErrors;
bool m_backendConnectionErrorsHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace XRay
{
namespace Model
{
enum class TimeRangeType
{
NOT_SET,
TraceId,
Event
};
namespace TimeRangeTypeMapper
{
AWS_XRAY_API TimeRangeType GetTimeRangeTypeForName(const Aws::String& name);
AWS_XRAY_API Aws::String GetNameForTimeRangeType(TimeRangeType value);
} // namespace TimeRangeTypeMapper
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,170 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/DateTime.h>
#include <aws/xray/model/EdgeStatistics.h>
#include <aws/xray/model/ServiceStatistics.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/xray/model/HistogramEntry.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>A list of TimeSeriesStatistic structures.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/TimeSeriesServiceStatistics">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API TimeSeriesServiceStatistics
{
public:
TimeSeriesServiceStatistics();
TimeSeriesServiceStatistics(Aws::Utils::Json::JsonView jsonValue);
TimeSeriesServiceStatistics& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Timestamp of the window for which statistics are aggregated.</p>
*/
inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
/**
* <p>Timestamp of the window for which statistics are aggregated.</p>
*/
inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
/**
* <p>Timestamp of the window for which statistics are aggregated.</p>
*/
inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
/**
* <p>Timestamp of the window for which statistics are aggregated.</p>
*/
inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
/**
* <p>Timestamp of the window for which statistics are aggregated.</p>
*/
inline TimeSeriesServiceStatistics& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
/**
* <p>Timestamp of the window for which statistics are aggregated.</p>
*/
inline TimeSeriesServiceStatistics& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
inline const EdgeStatistics& GetEdgeSummaryStatistics() const{ return m_edgeSummaryStatistics; }
inline bool EdgeSummaryStatisticsHasBeenSet() const { return m_edgeSummaryStatisticsHasBeenSet; }
inline void SetEdgeSummaryStatistics(const EdgeStatistics& value) { m_edgeSummaryStatisticsHasBeenSet = true; m_edgeSummaryStatistics = value; }
inline void SetEdgeSummaryStatistics(EdgeStatistics&& value) { m_edgeSummaryStatisticsHasBeenSet = true; m_edgeSummaryStatistics = std::move(value); }
inline TimeSeriesServiceStatistics& WithEdgeSummaryStatistics(const EdgeStatistics& value) { SetEdgeSummaryStatistics(value); return *this;}
inline TimeSeriesServiceStatistics& WithEdgeSummaryStatistics(EdgeStatistics&& value) { SetEdgeSummaryStatistics(std::move(value)); return *this;}
inline const ServiceStatistics& GetServiceSummaryStatistics() const{ return m_serviceSummaryStatistics; }
inline bool ServiceSummaryStatisticsHasBeenSet() const { return m_serviceSummaryStatisticsHasBeenSet; }
inline void SetServiceSummaryStatistics(const ServiceStatistics& value) { m_serviceSummaryStatisticsHasBeenSet = true; m_serviceSummaryStatistics = value; }
inline void SetServiceSummaryStatistics(ServiceStatistics&& value) { m_serviceSummaryStatisticsHasBeenSet = true; m_serviceSummaryStatistics = std::move(value); }
inline TimeSeriesServiceStatistics& WithServiceSummaryStatistics(const ServiceStatistics& value) { SetServiceSummaryStatistics(value); return *this;}
inline TimeSeriesServiceStatistics& WithServiceSummaryStatistics(ServiceStatistics&& value) { SetServiceSummaryStatistics(std::move(value)); return *this;}
/**
* <p>The response time histogram for the selected entities.</p>
*/
inline const Aws::Vector<HistogramEntry>& GetResponseTimeHistogram() const{ return m_responseTimeHistogram; }
/**
* <p>The response time histogram for the selected entities.</p>
*/
inline bool ResponseTimeHistogramHasBeenSet() const { return m_responseTimeHistogramHasBeenSet; }
/**
* <p>The response time histogram for the selected entities.</p>
*/
inline void SetResponseTimeHistogram(const Aws::Vector<HistogramEntry>& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram = value; }
/**
* <p>The response time histogram for the selected entities.</p>
*/
inline void SetResponseTimeHistogram(Aws::Vector<HistogramEntry>&& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram = std::move(value); }
/**
* <p>The response time histogram for the selected entities.</p>
*/
inline TimeSeriesServiceStatistics& WithResponseTimeHistogram(const Aws::Vector<HistogramEntry>& value) { SetResponseTimeHistogram(value); return *this;}
/**
* <p>The response time histogram for the selected entities.</p>
*/
inline TimeSeriesServiceStatistics& WithResponseTimeHistogram(Aws::Vector<HistogramEntry>&& value) { SetResponseTimeHistogram(std::move(value)); return *this;}
/**
* <p>The response time histogram for the selected entities.</p>
*/
inline TimeSeriesServiceStatistics& AddResponseTimeHistogram(const HistogramEntry& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram.push_back(value); return *this; }
/**
* <p>The response time histogram for the selected entities.</p>
*/
inline TimeSeriesServiceStatistics& AddResponseTimeHistogram(HistogramEntry&& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram.push_back(std::move(value)); return *this; }
private:
Aws::Utils::DateTime m_timestamp;
bool m_timestampHasBeenSet;
EdgeStatistics m_edgeSummaryStatistics;
bool m_edgeSummaryStatisticsHasBeenSet;
ServiceStatistics m_serviceSummaryStatistics;
bool m_serviceSummaryStatisticsHasBeenSet;
Aws::Vector<HistogramEntry> m_responseTimeHistogram;
bool m_responseTimeHistogramHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,95 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_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 XRay
{
namespace Model
{
class AWS_XRAY_API TooManyTagsException
{
public:
TooManyTagsException();
TooManyTagsException(Aws::Utils::Json::JsonView jsonValue);
TooManyTagsException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const Aws::String& GetMessage() const{ return m_message; }
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
inline TooManyTagsException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
inline TooManyTagsException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
inline TooManyTagsException& WithMessage(const char* value) { SetMessage(value); return *this;}
inline const Aws::String& GetResourceName() const{ return m_resourceName; }
inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
inline TooManyTagsException& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
inline TooManyTagsException& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
inline TooManyTagsException& WithResourceName(const char* value) { SetResourceName(value); return *this;}
private:
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::String m_resourceName;
bool m_resourceNameHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,179 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/xray/model/Segment.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>A collection of segment documents with matching trace IDs.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/Trace">AWS API
* Reference</a></p>
*/
class AWS_XRAY_API Trace
{
public:
Trace();
Trace(Aws::Utils::Json::JsonView jsonValue);
Trace& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The unique identifier for the request that generated the trace's segments and
* subsegments.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The unique identifier for the request that generated the trace's segments and
* subsegments.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The unique identifier for the request that generated the trace's segments and
* subsegments.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The unique identifier for the request that generated the trace's segments and
* subsegments.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The unique identifier for the request that generated the trace's segments and
* subsegments.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The unique identifier for the request that generated the trace's segments and
* subsegments.</p>
*/
inline Trace& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The unique identifier for the request that generated the trace's segments and
* subsegments.</p>
*/
inline Trace& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the request that generated the trace's segments and
* subsegments.</p>
*/
inline Trace& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The length of time in seconds between the start time of the root segment and
* the end time of the last segment that completed.</p>
*/
inline double GetDuration() const{ return m_duration; }
/**
* <p>The length of time in seconds between the start time of the root segment and
* the end time of the last segment that completed.</p>
*/
inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
/**
* <p>The length of time in seconds between the start time of the root segment and
* the end time of the last segment that completed.</p>
*/
inline void SetDuration(double value) { m_durationHasBeenSet = true; m_duration = value; }
/**
* <p>The length of time in seconds between the start time of the root segment and
* the end time of the last segment that completed.</p>
*/
inline Trace& WithDuration(double value) { SetDuration(value); return *this;}
/**
* <p>Segment documents for the segments and subsegments that comprise the
* trace.</p>
*/
inline const Aws::Vector<Segment>& GetSegments() const{ return m_segments; }
/**
* <p>Segment documents for the segments and subsegments that comprise the
* trace.</p>
*/
inline bool SegmentsHasBeenSet() const { return m_segmentsHasBeenSet; }
/**
* <p>Segment documents for the segments and subsegments that comprise the
* trace.</p>
*/
inline void SetSegments(const Aws::Vector<Segment>& value) { m_segmentsHasBeenSet = true; m_segments = value; }
/**
* <p>Segment documents for the segments and subsegments that comprise the
* trace.</p>
*/
inline void SetSegments(Aws::Vector<Segment>&& value) { m_segmentsHasBeenSet = true; m_segments = std::move(value); }
/**
* <p>Segment documents for the segments and subsegments that comprise the
* trace.</p>
*/
inline Trace& WithSegments(const Aws::Vector<Segment>& value) { SetSegments(value); return *this;}
/**
* <p>Segment documents for the segments and subsegments that comprise the
* trace.</p>
*/
inline Trace& WithSegments(Aws::Vector<Segment>&& value) { SetSegments(std::move(value)); return *this;}
/**
* <p>Segment documents for the segments and subsegments that comprise the
* trace.</p>
*/
inline Trace& AddSegments(const Segment& value) { m_segmentsHasBeenSet = true; m_segments.push_back(value); return *this; }
/**
* <p>Segment documents for the segments and subsegments that comprise the
* trace.</p>
*/
inline Trace& AddSegments(Segment&& value) { m_segmentsHasBeenSet = true; m_segments.push_back(std::move(value)); return *this; }
private:
Aws::String m_id;
bool m_idHasBeenSet;
double m_duration;
bool m_durationHasBeenSet;
Aws::Vector<Segment> m_segments;
bool m_segmentsHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,860 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/xray/model/Http.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/xray/model/ServiceId.h>
#include <aws/core/utils/DateTime.h>
#include <aws/xray/model/TraceUser.h>
#include <aws/xray/model/ResourceARNDetail.h>
#include <aws/xray/model/InstanceIdDetail.h>
#include <aws/xray/model/AvailabilityZoneDetail.h>
#include <aws/xray/model/FaultRootCause.h>
#include <aws/xray/model/ErrorRootCause.h>
#include <aws/xray/model/ResponseTimeRootCause.h>
#include <aws/xray/model/ValueWithServiceIds.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>Metadata generated from the segment documents in a trace.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/TraceSummary">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API TraceSummary
{
public:
TraceSummary();
TraceSummary(Aws::Utils::Json::JsonView jsonValue);
TraceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The unique identifier for the request that generated the trace's segments and
* subsegments.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The unique identifier for the request that generated the trace's segments and
* subsegments.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The unique identifier for the request that generated the trace's segments and
* subsegments.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The unique identifier for the request that generated the trace's segments and
* subsegments.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The unique identifier for the request that generated the trace's segments and
* subsegments.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The unique identifier for the request that generated the trace's segments and
* subsegments.</p>
*/
inline TraceSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The unique identifier for the request that generated the trace's segments and
* subsegments.</p>
*/
inline TraceSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the request that generated the trace's segments and
* subsegments.</p>
*/
inline TraceSummary& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The length of time in seconds between the start time of the root segment and
* the end time of the last segment that completed.</p>
*/
inline double GetDuration() const{ return m_duration; }
/**
* <p>The length of time in seconds between the start time of the root segment and
* the end time of the last segment that completed.</p>
*/
inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
/**
* <p>The length of time in seconds between the start time of the root segment and
* the end time of the last segment that completed.</p>
*/
inline void SetDuration(double value) { m_durationHasBeenSet = true; m_duration = value; }
/**
* <p>The length of time in seconds between the start time of the root segment and
* the end time of the last segment that completed.</p>
*/
inline TraceSummary& WithDuration(double value) { SetDuration(value); return *this;}
/**
* <p>The length of time in seconds between the start and end times of the root
* segment. If the service performs work asynchronously, the response time measures
* the time before the response is sent to the user, while the duration measures
* the amount of time before the last traced activity completes.</p>
*/
inline double GetResponseTime() const{ return m_responseTime; }
/**
* <p>The length of time in seconds between the start and end times of the root
* segment. If the service performs work asynchronously, the response time measures
* the time before the response is sent to the user, while the duration measures
* the amount of time before the last traced activity completes.</p>
*/
inline bool ResponseTimeHasBeenSet() const { return m_responseTimeHasBeenSet; }
/**
* <p>The length of time in seconds between the start and end times of the root
* segment. If the service performs work asynchronously, the response time measures
* the time before the response is sent to the user, while the duration measures
* the amount of time before the last traced activity completes.</p>
*/
inline void SetResponseTime(double value) { m_responseTimeHasBeenSet = true; m_responseTime = value; }
/**
* <p>The length of time in seconds between the start and end times of the root
* segment. If the service performs work asynchronously, the response time measures
* the time before the response is sent to the user, while the duration measures
* the amount of time before the last traced activity completes.</p>
*/
inline TraceSummary& WithResponseTime(double value) { SetResponseTime(value); return *this;}
/**
* <p>The root segment document has a 500 series error.</p>
*/
inline bool GetHasFault() const{ return m_hasFault; }
/**
* <p>The root segment document has a 500 series error.</p>
*/
inline bool HasFaultHasBeenSet() const { return m_hasFaultHasBeenSet; }
/**
* <p>The root segment document has a 500 series error.</p>
*/
inline void SetHasFault(bool value) { m_hasFaultHasBeenSet = true; m_hasFault = value; }
/**
* <p>The root segment document has a 500 series error.</p>
*/
inline TraceSummary& WithHasFault(bool value) { SetHasFault(value); return *this;}
/**
* <p>The root segment document has a 400 series error.</p>
*/
inline bool GetHasError() const{ return m_hasError; }
/**
* <p>The root segment document has a 400 series error.</p>
*/
inline bool HasErrorHasBeenSet() const { return m_hasErrorHasBeenSet; }
/**
* <p>The root segment document has a 400 series error.</p>
*/
inline void SetHasError(bool value) { m_hasErrorHasBeenSet = true; m_hasError = value; }
/**
* <p>The root segment document has a 400 series error.</p>
*/
inline TraceSummary& WithHasError(bool value) { SetHasError(value); return *this;}
/**
* <p>One or more of the segment documents has a 429 throttling error.</p>
*/
inline bool GetHasThrottle() const{ return m_hasThrottle; }
/**
* <p>One or more of the segment documents has a 429 throttling error.</p>
*/
inline bool HasThrottleHasBeenSet() const { return m_hasThrottleHasBeenSet; }
/**
* <p>One or more of the segment documents has a 429 throttling error.</p>
*/
inline void SetHasThrottle(bool value) { m_hasThrottleHasBeenSet = true; m_hasThrottle = value; }
/**
* <p>One or more of the segment documents has a 429 throttling error.</p>
*/
inline TraceSummary& WithHasThrottle(bool value) { SetHasThrottle(value); return *this;}
/**
* <p>One or more of the segment documents is in progress.</p>
*/
inline bool GetIsPartial() const{ return m_isPartial; }
/**
* <p>One or more of the segment documents is in progress.</p>
*/
inline bool IsPartialHasBeenSet() const { return m_isPartialHasBeenSet; }
/**
* <p>One or more of the segment documents is in progress.</p>
*/
inline void SetIsPartial(bool value) { m_isPartialHasBeenSet = true; m_isPartial = value; }
/**
* <p>One or more of the segment documents is in progress.</p>
*/
inline TraceSummary& WithIsPartial(bool value) { SetIsPartial(value); return *this;}
/**
* <p>Information about the HTTP request served by the trace.</p>
*/
inline const Http& GetHttp() const{ return m_http; }
/**
* <p>Information about the HTTP request served by the trace.</p>
*/
inline bool HttpHasBeenSet() const { return m_httpHasBeenSet; }
/**
* <p>Information about the HTTP request served by the trace.</p>
*/
inline void SetHttp(const Http& value) { m_httpHasBeenSet = true; m_http = value; }
/**
* <p>Information about the HTTP request served by the trace.</p>
*/
inline void SetHttp(Http&& value) { m_httpHasBeenSet = true; m_http = std::move(value); }
/**
* <p>Information about the HTTP request served by the trace.</p>
*/
inline TraceSummary& WithHttp(const Http& value) { SetHttp(value); return *this;}
/**
* <p>Information about the HTTP request served by the trace.</p>
*/
inline TraceSummary& WithHttp(Http&& value) { SetHttp(std::move(value)); return *this;}
/**
* <p>Annotations from the trace's segment documents.</p>
*/
inline const Aws::Map<Aws::String, Aws::Vector<ValueWithServiceIds>>& GetAnnotations() const{ return m_annotations; }
/**
* <p>Annotations from the trace's segment documents.</p>
*/
inline bool AnnotationsHasBeenSet() const { return m_annotationsHasBeenSet; }
/**
* <p>Annotations from the trace's segment documents.</p>
*/
inline void SetAnnotations(const Aws::Map<Aws::String, Aws::Vector<ValueWithServiceIds>>& value) { m_annotationsHasBeenSet = true; m_annotations = value; }
/**
* <p>Annotations from the trace's segment documents.</p>
*/
inline void SetAnnotations(Aws::Map<Aws::String, Aws::Vector<ValueWithServiceIds>>&& value) { m_annotationsHasBeenSet = true; m_annotations = std::move(value); }
/**
* <p>Annotations from the trace's segment documents.</p>
*/
inline TraceSummary& WithAnnotations(const Aws::Map<Aws::String, Aws::Vector<ValueWithServiceIds>>& value) { SetAnnotations(value); return *this;}
/**
* <p>Annotations from the trace's segment documents.</p>
*/
inline TraceSummary& WithAnnotations(Aws::Map<Aws::String, Aws::Vector<ValueWithServiceIds>>&& value) { SetAnnotations(std::move(value)); return *this;}
/**
* <p>Annotations from the trace's segment documents.</p>
*/
inline TraceSummary& AddAnnotations(const Aws::String& key, const Aws::Vector<ValueWithServiceIds>& value) { m_annotationsHasBeenSet = true; m_annotations.emplace(key, value); return *this; }
/**
* <p>Annotations from the trace's segment documents.</p>
*/
inline TraceSummary& AddAnnotations(Aws::String&& key, const Aws::Vector<ValueWithServiceIds>& value) { m_annotationsHasBeenSet = true; m_annotations.emplace(std::move(key), value); return *this; }
/**
* <p>Annotations from the trace's segment documents.</p>
*/
inline TraceSummary& AddAnnotations(const Aws::String& key, Aws::Vector<ValueWithServiceIds>&& value) { m_annotationsHasBeenSet = true; m_annotations.emplace(key, std::move(value)); return *this; }
/**
* <p>Annotations from the trace's segment documents.</p>
*/
inline TraceSummary& AddAnnotations(Aws::String&& key, Aws::Vector<ValueWithServiceIds>&& value) { m_annotationsHasBeenSet = true; m_annotations.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>Annotations from the trace's segment documents.</p>
*/
inline TraceSummary& AddAnnotations(const char* key, Aws::Vector<ValueWithServiceIds>&& value) { m_annotationsHasBeenSet = true; m_annotations.emplace(key, std::move(value)); return *this; }
/**
* <p>Annotations from the trace's segment documents.</p>
*/
inline TraceSummary& AddAnnotations(const char* key, const Aws::Vector<ValueWithServiceIds>& value) { m_annotationsHasBeenSet = true; m_annotations.emplace(key, value); return *this; }
/**
* <p>Users from the trace's segment documents.</p>
*/
inline const Aws::Vector<TraceUser>& GetUsers() const{ return m_users; }
/**
* <p>Users from the trace's segment documents.</p>
*/
inline bool UsersHasBeenSet() const { return m_usersHasBeenSet; }
/**
* <p>Users from the trace's segment documents.</p>
*/
inline void SetUsers(const Aws::Vector<TraceUser>& value) { m_usersHasBeenSet = true; m_users = value; }
/**
* <p>Users from the trace's segment documents.</p>
*/
inline void SetUsers(Aws::Vector<TraceUser>&& value) { m_usersHasBeenSet = true; m_users = std::move(value); }
/**
* <p>Users from the trace's segment documents.</p>
*/
inline TraceSummary& WithUsers(const Aws::Vector<TraceUser>& value) { SetUsers(value); return *this;}
/**
* <p>Users from the trace's segment documents.</p>
*/
inline TraceSummary& WithUsers(Aws::Vector<TraceUser>&& value) { SetUsers(std::move(value)); return *this;}
/**
* <p>Users from the trace's segment documents.</p>
*/
inline TraceSummary& AddUsers(const TraceUser& value) { m_usersHasBeenSet = true; m_users.push_back(value); return *this; }
/**
* <p>Users from the trace's segment documents.</p>
*/
inline TraceSummary& AddUsers(TraceUser&& value) { m_usersHasBeenSet = true; m_users.push_back(std::move(value)); return *this; }
/**
* <p>Service IDs from the trace's segment documents.</p>
*/
inline const Aws::Vector<ServiceId>& GetServiceIds() const{ return m_serviceIds; }
/**
* <p>Service IDs from the trace's segment documents.</p>
*/
inline bool ServiceIdsHasBeenSet() const { return m_serviceIdsHasBeenSet; }
/**
* <p>Service IDs from the trace's segment documents.</p>
*/
inline void SetServiceIds(const Aws::Vector<ServiceId>& value) { m_serviceIdsHasBeenSet = true; m_serviceIds = value; }
/**
* <p>Service IDs from the trace's segment documents.</p>
*/
inline void SetServiceIds(Aws::Vector<ServiceId>&& value) { m_serviceIdsHasBeenSet = true; m_serviceIds = std::move(value); }
/**
* <p>Service IDs from the trace's segment documents.</p>
*/
inline TraceSummary& WithServiceIds(const Aws::Vector<ServiceId>& value) { SetServiceIds(value); return *this;}
/**
* <p>Service IDs from the trace's segment documents.</p>
*/
inline TraceSummary& WithServiceIds(Aws::Vector<ServiceId>&& value) { SetServiceIds(std::move(value)); return *this;}
/**
* <p>Service IDs from the trace's segment documents.</p>
*/
inline TraceSummary& AddServiceIds(const ServiceId& value) { m_serviceIdsHasBeenSet = true; m_serviceIds.push_back(value); return *this; }
/**
* <p>Service IDs from the trace's segment documents.</p>
*/
inline TraceSummary& AddServiceIds(ServiceId&& value) { m_serviceIdsHasBeenSet = true; m_serviceIds.push_back(std::move(value)); return *this; }
/**
* <p>A list of resource ARNs for any resource corresponding to the trace
* segments.</p>
*/
inline const Aws::Vector<ResourceARNDetail>& GetResourceARNs() const{ return m_resourceARNs; }
/**
* <p>A list of resource ARNs for any resource corresponding to the trace
* segments.</p>
*/
inline bool ResourceARNsHasBeenSet() const { return m_resourceARNsHasBeenSet; }
/**
* <p>A list of resource ARNs for any resource corresponding to the trace
* segments.</p>
*/
inline void SetResourceARNs(const Aws::Vector<ResourceARNDetail>& value) { m_resourceARNsHasBeenSet = true; m_resourceARNs = value; }
/**
* <p>A list of resource ARNs for any resource corresponding to the trace
* segments.</p>
*/
inline void SetResourceARNs(Aws::Vector<ResourceARNDetail>&& value) { m_resourceARNsHasBeenSet = true; m_resourceARNs = std::move(value); }
/**
* <p>A list of resource ARNs for any resource corresponding to the trace
* segments.</p>
*/
inline TraceSummary& WithResourceARNs(const Aws::Vector<ResourceARNDetail>& value) { SetResourceARNs(value); return *this;}
/**
* <p>A list of resource ARNs for any resource corresponding to the trace
* segments.</p>
*/
inline TraceSummary& WithResourceARNs(Aws::Vector<ResourceARNDetail>&& value) { SetResourceARNs(std::move(value)); return *this;}
/**
* <p>A list of resource ARNs for any resource corresponding to the trace
* segments.</p>
*/
inline TraceSummary& AddResourceARNs(const ResourceARNDetail& value) { m_resourceARNsHasBeenSet = true; m_resourceARNs.push_back(value); return *this; }
/**
* <p>A list of resource ARNs for any resource corresponding to the trace
* segments.</p>
*/
inline TraceSummary& AddResourceARNs(ResourceARNDetail&& value) { m_resourceARNsHasBeenSet = true; m_resourceARNs.push_back(std::move(value)); return *this; }
/**
* <p>A list of EC2 instance IDs for any instance corresponding to the trace
* segments.</p>
*/
inline const Aws::Vector<InstanceIdDetail>& GetInstanceIds() const{ return m_instanceIds; }
/**
* <p>A list of EC2 instance IDs for any instance corresponding to the trace
* segments.</p>
*/
inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
/**
* <p>A list of EC2 instance IDs for any instance corresponding to the trace
* segments.</p>
*/
inline void SetInstanceIds(const Aws::Vector<InstanceIdDetail>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
/**
* <p>A list of EC2 instance IDs for any instance corresponding to the trace
* segments.</p>
*/
inline void SetInstanceIds(Aws::Vector<InstanceIdDetail>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
/**
* <p>A list of EC2 instance IDs for any instance corresponding to the trace
* segments.</p>
*/
inline TraceSummary& WithInstanceIds(const Aws::Vector<InstanceIdDetail>& value) { SetInstanceIds(value); return *this;}
/**
* <p>A list of EC2 instance IDs for any instance corresponding to the trace
* segments.</p>
*/
inline TraceSummary& WithInstanceIds(Aws::Vector<InstanceIdDetail>&& value) { SetInstanceIds(std::move(value)); return *this;}
/**
* <p>A list of EC2 instance IDs for any instance corresponding to the trace
* segments.</p>
*/
inline TraceSummary& AddInstanceIds(const InstanceIdDetail& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
/**
* <p>A list of EC2 instance IDs for any instance corresponding to the trace
* segments.</p>
*/
inline TraceSummary& AddInstanceIds(InstanceIdDetail&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
/**
* <p>A list of availability zones for any zone corresponding to the trace
* segments.</p>
*/
inline const Aws::Vector<AvailabilityZoneDetail>& GetAvailabilityZones() const{ return m_availabilityZones; }
/**
* <p>A list of availability zones for any zone corresponding to the trace
* segments.</p>
*/
inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
/**
* <p>A list of availability zones for any zone corresponding to the trace
* segments.</p>
*/
inline void SetAvailabilityZones(const Aws::Vector<AvailabilityZoneDetail>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
/**
* <p>A list of availability zones for any zone corresponding to the trace
* segments.</p>
*/
inline void SetAvailabilityZones(Aws::Vector<AvailabilityZoneDetail>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
/**
* <p>A list of availability zones for any zone corresponding to the trace
* segments.</p>
*/
inline TraceSummary& WithAvailabilityZones(const Aws::Vector<AvailabilityZoneDetail>& value) { SetAvailabilityZones(value); return *this;}
/**
* <p>A list of availability zones for any zone corresponding to the trace
* segments.</p>
*/
inline TraceSummary& WithAvailabilityZones(Aws::Vector<AvailabilityZoneDetail>&& value) { SetAvailabilityZones(std::move(value)); return *this;}
/**
* <p>A list of availability zones for any zone corresponding to the trace
* segments.</p>
*/
inline TraceSummary& AddAvailabilityZones(const AvailabilityZoneDetail& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
/**
* <p>A list of availability zones for any zone corresponding to the trace
* segments.</p>
*/
inline TraceSummary& AddAvailabilityZones(AvailabilityZoneDetail&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
/**
* <p>The root of a trace.</p>
*/
inline const ServiceId& GetEntryPoint() const{ return m_entryPoint; }
/**
* <p>The root of a trace.</p>
*/
inline bool EntryPointHasBeenSet() const { return m_entryPointHasBeenSet; }
/**
* <p>The root of a trace.</p>
*/
inline void SetEntryPoint(const ServiceId& value) { m_entryPointHasBeenSet = true; m_entryPoint = value; }
/**
* <p>The root of a trace.</p>
*/
inline void SetEntryPoint(ServiceId&& value) { m_entryPointHasBeenSet = true; m_entryPoint = std::move(value); }
/**
* <p>The root of a trace.</p>
*/
inline TraceSummary& WithEntryPoint(const ServiceId& value) { SetEntryPoint(value); return *this;}
/**
* <p>The root of a trace.</p>
*/
inline TraceSummary& WithEntryPoint(ServiceId&& value) { SetEntryPoint(std::move(value)); return *this;}
/**
* <p>A collection of FaultRootCause structures corresponding to the the trace
* segments.</p>
*/
inline const Aws::Vector<FaultRootCause>& GetFaultRootCauses() const{ return m_faultRootCauses; }
/**
* <p>A collection of FaultRootCause structures corresponding to the the trace
* segments.</p>
*/
inline bool FaultRootCausesHasBeenSet() const { return m_faultRootCausesHasBeenSet; }
/**
* <p>A collection of FaultRootCause structures corresponding to the the trace
* segments.</p>
*/
inline void SetFaultRootCauses(const Aws::Vector<FaultRootCause>& value) { m_faultRootCausesHasBeenSet = true; m_faultRootCauses = value; }
/**
* <p>A collection of FaultRootCause structures corresponding to the the trace
* segments.</p>
*/
inline void SetFaultRootCauses(Aws::Vector<FaultRootCause>&& value) { m_faultRootCausesHasBeenSet = true; m_faultRootCauses = std::move(value); }
/**
* <p>A collection of FaultRootCause structures corresponding to the the trace
* segments.</p>
*/
inline TraceSummary& WithFaultRootCauses(const Aws::Vector<FaultRootCause>& value) { SetFaultRootCauses(value); return *this;}
/**
* <p>A collection of FaultRootCause structures corresponding to the the trace
* segments.</p>
*/
inline TraceSummary& WithFaultRootCauses(Aws::Vector<FaultRootCause>&& value) { SetFaultRootCauses(std::move(value)); return *this;}
/**
* <p>A collection of FaultRootCause structures corresponding to the the trace
* segments.</p>
*/
inline TraceSummary& AddFaultRootCauses(const FaultRootCause& value) { m_faultRootCausesHasBeenSet = true; m_faultRootCauses.push_back(value); return *this; }
/**
* <p>A collection of FaultRootCause structures corresponding to the the trace
* segments.</p>
*/
inline TraceSummary& AddFaultRootCauses(FaultRootCause&& value) { m_faultRootCausesHasBeenSet = true; m_faultRootCauses.push_back(std::move(value)); return *this; }
/**
* <p>A collection of ErrorRootCause structures corresponding to the trace
* segments.</p>
*/
inline const Aws::Vector<ErrorRootCause>& GetErrorRootCauses() const{ return m_errorRootCauses; }
/**
* <p>A collection of ErrorRootCause structures corresponding to the trace
* segments.</p>
*/
inline bool ErrorRootCausesHasBeenSet() const { return m_errorRootCausesHasBeenSet; }
/**
* <p>A collection of ErrorRootCause structures corresponding to the trace
* segments.</p>
*/
inline void SetErrorRootCauses(const Aws::Vector<ErrorRootCause>& value) { m_errorRootCausesHasBeenSet = true; m_errorRootCauses = value; }
/**
* <p>A collection of ErrorRootCause structures corresponding to the trace
* segments.</p>
*/
inline void SetErrorRootCauses(Aws::Vector<ErrorRootCause>&& value) { m_errorRootCausesHasBeenSet = true; m_errorRootCauses = std::move(value); }
/**
* <p>A collection of ErrorRootCause structures corresponding to the trace
* segments.</p>
*/
inline TraceSummary& WithErrorRootCauses(const Aws::Vector<ErrorRootCause>& value) { SetErrorRootCauses(value); return *this;}
/**
* <p>A collection of ErrorRootCause structures corresponding to the trace
* segments.</p>
*/
inline TraceSummary& WithErrorRootCauses(Aws::Vector<ErrorRootCause>&& value) { SetErrorRootCauses(std::move(value)); return *this;}
/**
* <p>A collection of ErrorRootCause structures corresponding to the trace
* segments.</p>
*/
inline TraceSummary& AddErrorRootCauses(const ErrorRootCause& value) { m_errorRootCausesHasBeenSet = true; m_errorRootCauses.push_back(value); return *this; }
/**
* <p>A collection of ErrorRootCause structures corresponding to the trace
* segments.</p>
*/
inline TraceSummary& AddErrorRootCauses(ErrorRootCause&& value) { m_errorRootCausesHasBeenSet = true; m_errorRootCauses.push_back(std::move(value)); return *this; }
/**
* <p>A collection of ResponseTimeRootCause structures corresponding to the trace
* segments.</p>
*/
inline const Aws::Vector<ResponseTimeRootCause>& GetResponseTimeRootCauses() const{ return m_responseTimeRootCauses; }
/**
* <p>A collection of ResponseTimeRootCause structures corresponding to the trace
* segments.</p>
*/
inline bool ResponseTimeRootCausesHasBeenSet() const { return m_responseTimeRootCausesHasBeenSet; }
/**
* <p>A collection of ResponseTimeRootCause structures corresponding to the trace
* segments.</p>
*/
inline void SetResponseTimeRootCauses(const Aws::Vector<ResponseTimeRootCause>& value) { m_responseTimeRootCausesHasBeenSet = true; m_responseTimeRootCauses = value; }
/**
* <p>A collection of ResponseTimeRootCause structures corresponding to the trace
* segments.</p>
*/
inline void SetResponseTimeRootCauses(Aws::Vector<ResponseTimeRootCause>&& value) { m_responseTimeRootCausesHasBeenSet = true; m_responseTimeRootCauses = std::move(value); }
/**
* <p>A collection of ResponseTimeRootCause structures corresponding to the trace
* segments.</p>
*/
inline TraceSummary& WithResponseTimeRootCauses(const Aws::Vector<ResponseTimeRootCause>& value) { SetResponseTimeRootCauses(value); return *this;}
/**
* <p>A collection of ResponseTimeRootCause structures corresponding to the trace
* segments.</p>
*/
inline TraceSummary& WithResponseTimeRootCauses(Aws::Vector<ResponseTimeRootCause>&& value) { SetResponseTimeRootCauses(std::move(value)); return *this;}
/**
* <p>A collection of ResponseTimeRootCause structures corresponding to the trace
* segments.</p>
*/
inline TraceSummary& AddResponseTimeRootCauses(const ResponseTimeRootCause& value) { m_responseTimeRootCausesHasBeenSet = true; m_responseTimeRootCauses.push_back(value); return *this; }
/**
* <p>A collection of ResponseTimeRootCause structures corresponding to the trace
* segments.</p>
*/
inline TraceSummary& AddResponseTimeRootCauses(ResponseTimeRootCause&& value) { m_responseTimeRootCausesHasBeenSet = true; m_responseTimeRootCauses.push_back(std::move(value)); return *this; }
/**
* <p>The revision number of a trace.</p>
*/
inline int GetRevision() const{ return m_revision; }
/**
* <p>The revision number of a trace.</p>
*/
inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
/**
* <p>The revision number of a trace.</p>
*/
inline void SetRevision(int value) { m_revisionHasBeenSet = true; m_revision = value; }
/**
* <p>The revision number of a trace.</p>
*/
inline TraceSummary& WithRevision(int value) { SetRevision(value); return *this;}
/**
* <p>The matched time stamp of a defined event.</p>
*/
inline const Aws::Utils::DateTime& GetMatchedEventTime() const{ return m_matchedEventTime; }
/**
* <p>The matched time stamp of a defined event.</p>
*/
inline bool MatchedEventTimeHasBeenSet() const { return m_matchedEventTimeHasBeenSet; }
/**
* <p>The matched time stamp of a defined event.</p>
*/
inline void SetMatchedEventTime(const Aws::Utils::DateTime& value) { m_matchedEventTimeHasBeenSet = true; m_matchedEventTime = value; }
/**
* <p>The matched time stamp of a defined event.</p>
*/
inline void SetMatchedEventTime(Aws::Utils::DateTime&& value) { m_matchedEventTimeHasBeenSet = true; m_matchedEventTime = std::move(value); }
/**
* <p>The matched time stamp of a defined event.</p>
*/
inline TraceSummary& WithMatchedEventTime(const Aws::Utils::DateTime& value) { SetMatchedEventTime(value); return *this;}
/**
* <p>The matched time stamp of a defined event.</p>
*/
inline TraceSummary& WithMatchedEventTime(Aws::Utils::DateTime&& value) { SetMatchedEventTime(std::move(value)); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
double m_duration;
bool m_durationHasBeenSet;
double m_responseTime;
bool m_responseTimeHasBeenSet;
bool m_hasFault;
bool m_hasFaultHasBeenSet;
bool m_hasError;
bool m_hasErrorHasBeenSet;
bool m_hasThrottle;
bool m_hasThrottleHasBeenSet;
bool m_isPartial;
bool m_isPartialHasBeenSet;
Http m_http;
bool m_httpHasBeenSet;
Aws::Map<Aws::String, Aws::Vector<ValueWithServiceIds>> m_annotations;
bool m_annotationsHasBeenSet;
Aws::Vector<TraceUser> m_users;
bool m_usersHasBeenSet;
Aws::Vector<ServiceId> m_serviceIds;
bool m_serviceIdsHasBeenSet;
Aws::Vector<ResourceARNDetail> m_resourceARNs;
bool m_resourceARNsHasBeenSet;
Aws::Vector<InstanceIdDetail> m_instanceIds;
bool m_instanceIdsHasBeenSet;
Aws::Vector<AvailabilityZoneDetail> m_availabilityZones;
bool m_availabilityZonesHasBeenSet;
ServiceId m_entryPoint;
bool m_entryPointHasBeenSet;
Aws::Vector<FaultRootCause> m_faultRootCauses;
bool m_faultRootCausesHasBeenSet;
Aws::Vector<ErrorRootCause> m_errorRootCauses;
bool m_errorRootCausesHasBeenSet;
Aws::Vector<ResponseTimeRootCause> m_responseTimeRootCauses;
bool m_responseTimeRootCausesHasBeenSet;
int m_revision;
bool m_revisionHasBeenSet;
Aws::Utils::DateTime m_matchedEventTime;
bool m_matchedEventTimeHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,135 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/xray/model/ServiceId.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>Information about a user recorded in segment documents.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/TraceUser">AWS API
* Reference</a></p>
*/
class AWS_XRAY_API TraceUser
{
public:
TraceUser();
TraceUser(Aws::Utils::Json::JsonView jsonValue);
TraceUser& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The user's name.</p>
*/
inline const Aws::String& GetUserName() const{ return m_userName; }
/**
* <p>The user's name.</p>
*/
inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
/**
* <p>The user's name.</p>
*/
inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
/**
* <p>The user's name.</p>
*/
inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
/**
* <p>The user's name.</p>
*/
inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
/**
* <p>The user's name.</p>
*/
inline TraceUser& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
/**
* <p>The user's name.</p>
*/
inline TraceUser& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
/**
* <p>The user's name.</p>
*/
inline TraceUser& WithUserName(const char* value) { SetUserName(value); return *this;}
/**
* <p>Services that the user's request hit.</p>
*/
inline const Aws::Vector<ServiceId>& GetServiceIds() const{ return m_serviceIds; }
/**
* <p>Services that the user's request hit.</p>
*/
inline bool ServiceIdsHasBeenSet() const { return m_serviceIdsHasBeenSet; }
/**
* <p>Services that the user's request hit.</p>
*/
inline void SetServiceIds(const Aws::Vector<ServiceId>& value) { m_serviceIdsHasBeenSet = true; m_serviceIds = value; }
/**
* <p>Services that the user's request hit.</p>
*/
inline void SetServiceIds(Aws::Vector<ServiceId>&& value) { m_serviceIdsHasBeenSet = true; m_serviceIds = std::move(value); }
/**
* <p>Services that the user's request hit.</p>
*/
inline TraceUser& WithServiceIds(const Aws::Vector<ServiceId>& value) { SetServiceIds(value); return *this;}
/**
* <p>Services that the user's request hit.</p>
*/
inline TraceUser& WithServiceIds(Aws::Vector<ServiceId>&& value) { SetServiceIds(std::move(value)); return *this;}
/**
* <p>Services that the user's request hit.</p>
*/
inline TraceUser& AddServiceIds(const ServiceId& value) { m_serviceIdsHasBeenSet = true; m_serviceIds.push_back(value); return *this; }
/**
* <p>Services that the user's request hit.</p>
*/
inline TraceUser& AddServiceIds(ServiceId&& value) { m_serviceIdsHasBeenSet = true; m_serviceIds.push_back(std::move(value)); return *this; }
private:
Aws::String m_userName;
bool m_userNameHasBeenSet;
Aws::Vector<ServiceId> m_serviceIds;
bool m_serviceIdsHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,177 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_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 XRay
{
namespace Model
{
/**
* <p>Sampling statistics from a call to <a>GetSamplingTargets</a> that X-Ray could
* not process.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/UnprocessedStatistics">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API UnprocessedStatistics
{
public:
UnprocessedStatistics();
UnprocessedStatistics(Aws::Utils::Json::JsonView jsonValue);
UnprocessedStatistics& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the sampling rule.</p>
*/
inline const Aws::String& GetRuleName() const{ return m_ruleName; }
/**
* <p>The name of the sampling rule.</p>
*/
inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
/**
* <p>The name of the sampling rule.</p>
*/
inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
/**
* <p>The name of the sampling rule.</p>
*/
inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
/**
* <p>The name of the sampling rule.</p>
*/
inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
/**
* <p>The name of the sampling rule.</p>
*/
inline UnprocessedStatistics& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
/**
* <p>The name of the sampling rule.</p>
*/
inline UnprocessedStatistics& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
/**
* <p>The name of the sampling rule.</p>
*/
inline UnprocessedStatistics& WithRuleName(const char* value) { SetRuleName(value); return *this;}
/**
* <p>The error code.</p>
*/
inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
/**
* <p>The error code.</p>
*/
inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
/**
* <p>The error code.</p>
*/
inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
/**
* <p>The error code.</p>
*/
inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
/**
* <p>The error code.</p>
*/
inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
/**
* <p>The error code.</p>
*/
inline UnprocessedStatistics& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
/**
* <p>The error code.</p>
*/
inline UnprocessedStatistics& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
/**
* <p>The error code.</p>
*/
inline UnprocessedStatistics& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
/**
* <p>The error message.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>The error message.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>The error message.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>The error message.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>The error message.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>The error message.</p>
*/
inline UnprocessedStatistics& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>The error message.</p>
*/
inline UnprocessedStatistics& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>The error message.</p>
*/
inline UnprocessedStatistics& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
Aws::String m_ruleName;
bool m_ruleNameHasBeenSet;
Aws::String m_errorCode;
bool m_errorCodeHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,177 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_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 XRay
{
namespace Model
{
/**
* <p>Information about a segment that failed processing.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/UnprocessedTraceSegment">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API UnprocessedTraceSegment
{
public:
UnprocessedTraceSegment();
UnprocessedTraceSegment(Aws::Utils::Json::JsonView jsonValue);
UnprocessedTraceSegment& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The segment's ID.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The segment's ID.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The segment's ID.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The segment's ID.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The segment's ID.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The segment's ID.</p>
*/
inline UnprocessedTraceSegment& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The segment's ID.</p>
*/
inline UnprocessedTraceSegment& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The segment's ID.</p>
*/
inline UnprocessedTraceSegment& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The error that caused processing to fail.</p>
*/
inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
/**
* <p>The error that caused processing to fail.</p>
*/
inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
/**
* <p>The error that caused processing to fail.</p>
*/
inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
/**
* <p>The error that caused processing to fail.</p>
*/
inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
/**
* <p>The error that caused processing to fail.</p>
*/
inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
/**
* <p>The error that caused processing to fail.</p>
*/
inline UnprocessedTraceSegment& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
/**
* <p>The error that caused processing to fail.</p>
*/
inline UnprocessedTraceSegment& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
/**
* <p>The error that caused processing to fail.</p>
*/
inline UnprocessedTraceSegment& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
/**
* <p>The error message.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>The error message.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>The error message.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>The error message.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>The error message.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>The error message.</p>
*/
inline UnprocessedTraceSegment& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>The error message.</p>
*/
inline UnprocessedTraceSegment& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>The error message.</p>
*/
inline UnprocessedTraceSegment& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_errorCode;
bool m_errorCodeHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,99 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/XRayRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace XRay
{
namespace Model
{
/**
*/
class AWS_XRAY_API UntagResourceRequest : public XRayRequest
{
public:
UntagResourceRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "UntagResource"; }
Aws::String SerializePayload() const override;
inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
inline UntagResourceRequest& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
inline UntagResourceRequest& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
inline UntagResourceRequest& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
inline UntagResourceRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
inline UntagResourceRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
inline UntagResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
private:
Aws::String m_resourceARN;
bool m_resourceARNHasBeenSet;
Aws::Vector<Aws::String> m_tagKeys;
bool m_tagKeysHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
class AWS_XRAY_API UntagResourceResult
{
public:
UntagResourceResult();
UntagResourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UntagResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,171 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/XRayRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace XRay
{
namespace Model
{
/**
*/
class AWS_XRAY_API UpdateGroupRequest : public XRayRequest
{
public:
UpdateGroupRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "UpdateGroup"; }
Aws::String SerializePayload() const override;
/**
* <p>The case-sensitive name of the group.</p>
*/
inline const Aws::String& GetGroupName() const{ return m_groupName; }
/**
* <p>The case-sensitive name of the group.</p>
*/
inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
/**
* <p>The case-sensitive name of the group.</p>
*/
inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
/**
* <p>The case-sensitive name of the group.</p>
*/
inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
/**
* <p>The case-sensitive name of the group.</p>
*/
inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
/**
* <p>The case-sensitive name of the group.</p>
*/
inline UpdateGroupRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
/**
* <p>The case-sensitive name of the group.</p>
*/
inline UpdateGroupRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
/**
* <p>The case-sensitive name of the group.</p>
*/
inline UpdateGroupRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
/**
* <p>The ARN that was generated upon creation.</p>
*/
inline const Aws::String& GetGroupARN() const{ return m_groupARN; }
/**
* <p>The ARN that was generated upon creation.</p>
*/
inline bool GroupARNHasBeenSet() const { return m_groupARNHasBeenSet; }
/**
* <p>The ARN that was generated upon creation.</p>
*/
inline void SetGroupARN(const Aws::String& value) { m_groupARNHasBeenSet = true; m_groupARN = value; }
/**
* <p>The ARN that was generated upon creation.</p>
*/
inline void SetGroupARN(Aws::String&& value) { m_groupARNHasBeenSet = true; m_groupARN = std::move(value); }
/**
* <p>The ARN that was generated upon creation.</p>
*/
inline void SetGroupARN(const char* value) { m_groupARNHasBeenSet = true; m_groupARN.assign(value); }
/**
* <p>The ARN that was generated upon creation.</p>
*/
inline UpdateGroupRequest& WithGroupARN(const Aws::String& value) { SetGroupARN(value); return *this;}
/**
* <p>The ARN that was generated upon creation.</p>
*/
inline UpdateGroupRequest& WithGroupARN(Aws::String&& value) { SetGroupARN(std::move(value)); return *this;}
/**
* <p>The ARN that was generated upon creation.</p>
*/
inline UpdateGroupRequest& WithGroupARN(const char* value) { SetGroupARN(value); return *this;}
/**
* <p>The updated filter expression defining criteria by which to group traces.</p>
*/
inline const Aws::String& GetFilterExpression() const{ return m_filterExpression; }
/**
* <p>The updated filter expression defining criteria by which to group traces.</p>
*/
inline bool FilterExpressionHasBeenSet() const { return m_filterExpressionHasBeenSet; }
/**
* <p>The updated filter expression defining criteria by which to group traces.</p>
*/
inline void SetFilterExpression(const Aws::String& value) { m_filterExpressionHasBeenSet = true; m_filterExpression = value; }
/**
* <p>The updated filter expression defining criteria by which to group traces.</p>
*/
inline void SetFilterExpression(Aws::String&& value) { m_filterExpressionHasBeenSet = true; m_filterExpression = std::move(value); }
/**
* <p>The updated filter expression defining criteria by which to group traces.</p>
*/
inline void SetFilterExpression(const char* value) { m_filterExpressionHasBeenSet = true; m_filterExpression.assign(value); }
/**
* <p>The updated filter expression defining criteria by which to group traces.</p>
*/
inline UpdateGroupRequest& WithFilterExpression(const Aws::String& value) { SetFilterExpression(value); return *this;}
/**
* <p>The updated filter expression defining criteria by which to group traces.</p>
*/
inline UpdateGroupRequest& WithFilterExpression(Aws::String&& value) { SetFilterExpression(std::move(value)); return *this;}
/**
* <p>The updated filter expression defining criteria by which to group traces.</p>
*/
inline UpdateGroupRequest& WithFilterExpression(const char* value) { SetFilterExpression(value); return *this;}
private:
Aws::String m_groupName;
bool m_groupNameHasBeenSet;
Aws::String m_groupARN;
bool m_groupARNHasBeenSet;
Aws::String m_filterExpression;
bool m_filterExpressionHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/model/Group.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
class AWS_XRAY_API UpdateGroupResult
{
public:
UpdateGroupResult();
UpdateGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UpdateGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The group that was updated. Contains the name of the group that was updated,
* the ARN of the group that was updated, and the updated filter expression
* assigned to the group.</p>
*/
inline const Group& GetGroup() const{ return m_group; }
/**
* <p>The group that was updated. Contains the name of the group that was updated,
* the ARN of the group that was updated, and the updated filter expression
* assigned to the group.</p>
*/
inline void SetGroup(const Group& value) { m_group = value; }
/**
* <p>The group that was updated. Contains the name of the group that was updated,
* the ARN of the group that was updated, and the updated filter expression
* assigned to the group.</p>
*/
inline void SetGroup(Group&& value) { m_group = std::move(value); }
/**
* <p>The group that was updated. Contains the name of the group that was updated,
* the ARN of the group that was updated, and the updated filter expression
* assigned to the group.</p>
*/
inline UpdateGroupResult& WithGroup(const Group& value) { SetGroup(value); return *this;}
/**
* <p>The group that was updated. Contains the name of the group that was updated,
* the ARN of the group that was updated, and the updated filter expression
* assigned to the group.</p>
*/
inline UpdateGroupResult& WithGroup(Group&& value) { SetGroup(std::move(value)); return *this;}
private:
Group m_group;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,73 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/XRayRequest.h>
#include <aws/xray/model/SamplingRuleUpdate.h>
#include <utility>
namespace Aws
{
namespace XRay
{
namespace Model
{
/**
*/
class AWS_XRAY_API UpdateSamplingRuleRequest : public XRayRequest
{
public:
UpdateSamplingRuleRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "UpdateSamplingRule"; }
Aws::String SerializePayload() const override;
/**
* <p>The rule and fields to change.</p>
*/
inline const SamplingRuleUpdate& GetSamplingRuleUpdate() const{ return m_samplingRuleUpdate; }
/**
* <p>The rule and fields to change.</p>
*/
inline bool SamplingRuleUpdateHasBeenSet() const { return m_samplingRuleUpdateHasBeenSet; }
/**
* <p>The rule and fields to change.</p>
*/
inline void SetSamplingRuleUpdate(const SamplingRuleUpdate& value) { m_samplingRuleUpdateHasBeenSet = true; m_samplingRuleUpdate = value; }
/**
* <p>The rule and fields to change.</p>
*/
inline void SetSamplingRuleUpdate(SamplingRuleUpdate&& value) { m_samplingRuleUpdateHasBeenSet = true; m_samplingRuleUpdate = std::move(value); }
/**
* <p>The rule and fields to change.</p>
*/
inline UpdateSamplingRuleRequest& WithSamplingRuleUpdate(const SamplingRuleUpdate& value) { SetSamplingRuleUpdate(value); return *this;}
/**
* <p>The rule and fields to change.</p>
*/
inline UpdateSamplingRuleRequest& WithSamplingRuleUpdate(SamplingRuleUpdate&& value) { SetSamplingRuleUpdate(std::move(value)); return *this;}
private:
SamplingRuleUpdate m_samplingRuleUpdate;
bool m_samplingRuleUpdateHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/model/SamplingRuleRecord.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
class AWS_XRAY_API UpdateSamplingRuleResult
{
public:
UpdateSamplingRuleResult();
UpdateSamplingRuleResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UpdateSamplingRuleResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The updated rule definition and metadata.</p>
*/
inline const SamplingRuleRecord& GetSamplingRuleRecord() const{ return m_samplingRuleRecord; }
/**
* <p>The updated rule definition and metadata.</p>
*/
inline void SetSamplingRuleRecord(const SamplingRuleRecord& value) { m_samplingRuleRecord = value; }
/**
* <p>The updated rule definition and metadata.</p>
*/
inline void SetSamplingRuleRecord(SamplingRuleRecord&& value) { m_samplingRuleRecord = std::move(value); }
/**
* <p>The updated rule definition and metadata.</p>
*/
inline UpdateSamplingRuleResult& WithSamplingRuleRecord(const SamplingRuleRecord& value) { SetSamplingRuleRecord(value); return *this;}
/**
* <p>The updated rule definition and metadata.</p>
*/
inline UpdateSamplingRuleResult& WithSamplingRuleRecord(SamplingRuleRecord&& value) { SetSamplingRuleRecord(std::move(value)); return *this;}
private:
SamplingRuleRecord m_samplingRuleRecord;
};
} // namespace Model
} // namespace XRay
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/model/AnnotationValue.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/xray/model/ServiceId.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>Information about a segment annotation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ValueWithServiceIds">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API ValueWithServiceIds
{
public:
ValueWithServiceIds();
ValueWithServiceIds(Aws::Utils::Json::JsonView jsonValue);
ValueWithServiceIds& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Values of the annotation.</p>
*/
inline const AnnotationValue& GetAnnotationValue() const{ return m_annotationValue; }
/**
* <p>Values of the annotation.</p>
*/
inline bool AnnotationValueHasBeenSet() const { return m_annotationValueHasBeenSet; }
/**
* <p>Values of the annotation.</p>
*/
inline void SetAnnotationValue(const AnnotationValue& value) { m_annotationValueHasBeenSet = true; m_annotationValue = value; }
/**
* <p>Values of the annotation.</p>
*/
inline void SetAnnotationValue(AnnotationValue&& value) { m_annotationValueHasBeenSet = true; m_annotationValue = std::move(value); }
/**
* <p>Values of the annotation.</p>
*/
inline ValueWithServiceIds& WithAnnotationValue(const AnnotationValue& value) { SetAnnotationValue(value); return *this;}
/**
* <p>Values of the annotation.</p>
*/
inline ValueWithServiceIds& WithAnnotationValue(AnnotationValue&& value) { SetAnnotationValue(std::move(value)); return *this;}
/**
* <p>Services to which the annotation applies.</p>
*/
inline const Aws::Vector<ServiceId>& GetServiceIds() const{ return m_serviceIds; }
/**
* <p>Services to which the annotation applies.</p>
*/
inline bool ServiceIdsHasBeenSet() const { return m_serviceIdsHasBeenSet; }
/**
* <p>Services to which the annotation applies.</p>
*/
inline void SetServiceIds(const Aws::Vector<ServiceId>& value) { m_serviceIdsHasBeenSet = true; m_serviceIds = value; }
/**
* <p>Services to which the annotation applies.</p>
*/
inline void SetServiceIds(Aws::Vector<ServiceId>&& value) { m_serviceIdsHasBeenSet = true; m_serviceIds = std::move(value); }
/**
* <p>Services to which the annotation applies.</p>
*/
inline ValueWithServiceIds& WithServiceIds(const Aws::Vector<ServiceId>& value) { SetServiceIds(value); return *this;}
/**
* <p>Services to which the annotation applies.</p>
*/
inline ValueWithServiceIds& WithServiceIds(Aws::Vector<ServiceId>&& value) { SetServiceIds(std::move(value)); return *this;}
/**
* <p>Services to which the annotation applies.</p>
*/
inline ValueWithServiceIds& AddServiceIds(const ServiceId& value) { m_serviceIdsHasBeenSet = true; m_serviceIds.push_back(value); return *this; }
/**
* <p>Services to which the annotation applies.</p>
*/
inline ValueWithServiceIds& AddServiceIds(ServiceId&& value) { m_serviceIdsHasBeenSet = true; m_serviceIds.push_back(std::move(value)); return *this; }
private:
AnnotationValue m_annotationValue;
bool m_annotationValueHasBeenSet;
Aws::Vector<ServiceId> m_serviceIds;
bool m_serviceIdsHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws