Skip to content

Commit 960c424

Browse files
committed
Merge branch 'download-checksums' of https://github.com/aws/aws-sdk-cpp into download-checksums
2 parents 85f553f + 4982968 commit 960c424

File tree

55 files changed

+3792
-236
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+3792
-236
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.11.718
1+
1.11.719

generated/src/aws-cpp-sdk-connect/include/aws/connect/ConnectErrors.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ enum class ConnectErrors {
5252
DUPLICATE_RESOURCE,
5353
IDEMPOTENCY,
5454
INTERNAL_SERVICE,
55+
INVALID_ACTIVE_REGION,
5556
INVALID_CONTACT_FLOW,
5657
INVALID_CONTACT_FLOW_MODULE,
5758
INVALID_PARAMETER,

generated/src/aws-cpp-sdk-connect/include/aws/connect/model/Contact.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <aws/connect/model/CustomerVoiceActivity.h>
1919
#include <aws/connect/model/DisconnectDetails.h>
2020
#include <aws/connect/model/EndpointInfo.h>
21+
#include <aws/connect/model/GlobalResiliencyMetadata.h>
2122
#include <aws/connect/model/NextContactEntry.h>
2223
#include <aws/connect/model/OutboundStrategy.h>
2324
#include <aws/connect/model/QualityMetrics.h>
@@ -967,6 +968,25 @@ class Contact {
967968
return *this;
968969
}
969970
///@}
971+
972+
///@{
973+
/**
974+
* <p>Information about the global resiliency configuration for the contact,
975+
* including traffic distribution details.</p>
976+
*/
977+
inline const GlobalResiliencyMetadata& GetGlobalResiliencyMetadata() const { return m_globalResiliencyMetadata; }
978+
inline bool GlobalResiliencyMetadataHasBeenSet() const { return m_globalResiliencyMetadataHasBeenSet; }
979+
template <typename GlobalResiliencyMetadataT = GlobalResiliencyMetadata>
980+
void SetGlobalResiliencyMetadata(GlobalResiliencyMetadataT&& value) {
981+
m_globalResiliencyMetadataHasBeenSet = true;
982+
m_globalResiliencyMetadata = std::forward<GlobalResiliencyMetadataT>(value);
983+
}
984+
template <typename GlobalResiliencyMetadataT = GlobalResiliencyMetadata>
985+
Contact& WithGlobalResiliencyMetadata(GlobalResiliencyMetadataT&& value) {
986+
SetGlobalResiliencyMetadata(std::forward<GlobalResiliencyMetadataT>(value));
987+
return *this;
988+
}
989+
///@}
970990
private:
971991
Aws::String m_arn;
972992

@@ -1061,6 +1081,8 @@ class Contact {
10611081
Aws::Map<Aws::String, Aws::String> m_attributes;
10621082

10631083
Aws::Vector<NextContactEntry> m_nextContacts;
1084+
1085+
GlobalResiliencyMetadata m_globalResiliencyMetadata;
10641086
bool m_arnHasBeenSet = false;
10651087
bool m_idHasBeenSet = false;
10661088
bool m_initialContactIdHasBeenSet = false;
@@ -1108,6 +1130,7 @@ class Contact {
11081130
bool m_outboundStrategyHasBeenSet = false;
11091131
bool m_attributesHasBeenSet = false;
11101132
bool m_nextContactsHasBeenSet = false;
1133+
bool m_globalResiliencyMetadataHasBeenSet = false;
11111134
};
11121135

11131136
} // namespace Model
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
/**
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
#pragma once
7+
#include <aws/connect/Connect_EXPORTS.h>
8+
#include <aws/core/utils/memory/stl/AWSString.h>
9+
10+
#include <utility>
11+
12+
namespace Aws {
13+
namespace Utils {
14+
namespace Json {
15+
class JsonValue;
16+
class JsonView;
17+
} // namespace Json
18+
} // namespace Utils
19+
namespace Connect {
20+
namespace Model {
21+
22+
/**
23+
* <p>Information about the global resiliency configuration for the contact,
24+
* including traffic distribution details.</p><p><h3>See Also:</h3> <a
25+
* href="http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/GlobalResiliencyMetadata">AWS
26+
* API Reference</a></p>
27+
*/
28+
class GlobalResiliencyMetadata {
29+
public:
30+
AWS_CONNECT_API GlobalResiliencyMetadata() = default;
31+
AWS_CONNECT_API GlobalResiliencyMetadata(Aws::Utils::Json::JsonView jsonValue);
32+
AWS_CONNECT_API GlobalResiliencyMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
33+
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
34+
35+
///@{
36+
/**
37+
* <p>The current AWS region in which the contact is active. This indicates where
38+
* the contact is being processed in real-time.</p>
39+
*/
40+
inline const Aws::String& GetActiveRegion() const { return m_activeRegion; }
41+
inline bool ActiveRegionHasBeenSet() const { return m_activeRegionHasBeenSet; }
42+
template <typename ActiveRegionT = Aws::String>
43+
void SetActiveRegion(ActiveRegionT&& value) {
44+
m_activeRegionHasBeenSet = true;
45+
m_activeRegion = std::forward<ActiveRegionT>(value);
46+
}
47+
template <typename ActiveRegionT = Aws::String>
48+
GlobalResiliencyMetadata& WithActiveRegion(ActiveRegionT&& value) {
49+
SetActiveRegion(std::forward<ActiveRegionT>(value));
50+
return *this;
51+
}
52+
///@}
53+
54+
///@{
55+
/**
56+
* <p>The AWS region where the contact was originally created and initiated. This
57+
* may differ from the ActiveRegion if the contact has been transferred across
58+
* regions.</p>
59+
*/
60+
inline const Aws::String& GetOriginRegion() const { return m_originRegion; }
61+
inline bool OriginRegionHasBeenSet() const { return m_originRegionHasBeenSet; }
62+
template <typename OriginRegionT = Aws::String>
63+
void SetOriginRegion(OriginRegionT&& value) {
64+
m_originRegionHasBeenSet = true;
65+
m_originRegion = std::forward<OriginRegionT>(value);
66+
}
67+
template <typename OriginRegionT = Aws::String>
68+
GlobalResiliencyMetadata& WithOriginRegion(OriginRegionT&& value) {
69+
SetOriginRegion(std::forward<OriginRegionT>(value));
70+
return *this;
71+
}
72+
///@}
73+
74+
///@{
75+
/**
76+
* <p>The identifier of the traffic distribution group.</p>
77+
*/
78+
inline const Aws::String& GetTrafficDistributionGroupId() const { return m_trafficDistributionGroupId; }
79+
inline bool TrafficDistributionGroupIdHasBeenSet() const { return m_trafficDistributionGroupIdHasBeenSet; }
80+
template <typename TrafficDistributionGroupIdT = Aws::String>
81+
void SetTrafficDistributionGroupId(TrafficDistributionGroupIdT&& value) {
82+
m_trafficDistributionGroupIdHasBeenSet = true;
83+
m_trafficDistributionGroupId = std::forward<TrafficDistributionGroupIdT>(value);
84+
}
85+
template <typename TrafficDistributionGroupIdT = Aws::String>
86+
GlobalResiliencyMetadata& WithTrafficDistributionGroupId(TrafficDistributionGroupIdT&& value) {
87+
SetTrafficDistributionGroupId(std::forward<TrafficDistributionGroupIdT>(value));
88+
return *this;
89+
}
90+
///@}
91+
private:
92+
Aws::String m_activeRegion;
93+
94+
Aws::String m_originRegion;
95+
96+
Aws::String m_trafficDistributionGroupId;
97+
bool m_activeRegionHasBeenSet = false;
98+
bool m_originRegionHasBeenSet = false;
99+
bool m_trafficDistributionGroupIdHasBeenSet = false;
100+
};
101+
102+
} // namespace Model
103+
} // namespace Connect
104+
} // namespace Aws

generated/src/aws-cpp-sdk-connect/source/ConnectErrors.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ static const int CONDITIONAL_OPERATION_FAILED_HASH = HashingUtils::HashString("C
7676
static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException");
7777
static const int CONTACT_NOT_FOUND_HASH = HashingUtils::HashString("ContactNotFoundException");
7878
static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException");
79+
static const int INVALID_ACTIVE_REGION_HASH = HashingUtils::HashString("InvalidActiveRegionException");
7980
static const int RESOURCE_CONFLICT_HASH = HashingUtils::HashString("ResourceConflictException");
8081
static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException");
8182
static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException");
@@ -121,6 +122,8 @@ AWSError<CoreErrors> GetErrorForName(const char* errorName) {
121122
return AWSError<CoreErrors>(static_cast<CoreErrors>(ConnectErrors::CONTACT_NOT_FOUND), RetryableType::NOT_RETRYABLE);
122123
} else if (hashCode == INVALID_PARAMETER_HASH) {
123124
return AWSError<CoreErrors>(static_cast<CoreErrors>(ConnectErrors::INVALID_PARAMETER), RetryableType::NOT_RETRYABLE);
125+
} else if (hashCode == INVALID_ACTIVE_REGION_HASH) {
126+
return AWSError<CoreErrors>(static_cast<CoreErrors>(ConnectErrors::INVALID_ACTIVE_REGION), RetryableType::NOT_RETRYABLE);
124127
} else if (hashCode == RESOURCE_CONFLICT_HASH) {
125128
return AWSError<CoreErrors>(static_cast<CoreErrors>(ConnectErrors::RESOURCE_CONFLICT), RetryableType::NOT_RETRYABLE);
126129
} else if (hashCode == TOO_MANY_REQUESTS_HASH) {

generated/src/aws-cpp-sdk-connect/source/model/Contact.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,10 @@ Contact& Contact::operator=(JsonView jsonValue) {
225225
}
226226
m_nextContactsHasBeenSet = true;
227227
}
228+
if (jsonValue.ValueExists("GlobalResiliencyMetadata")) {
229+
m_globalResiliencyMetadata = jsonValue.GetObject("GlobalResiliencyMetadata");
230+
m_globalResiliencyMetadataHasBeenSet = true;
231+
}
228232
return *this;
229233
}
230234

@@ -444,6 +448,10 @@ JsonValue Contact::Jsonize() const {
444448
payload.WithArray("NextContacts", std::move(nextContactsJsonList));
445449
}
446450

451+
if (m_globalResiliencyMetadataHasBeenSet) {
452+
payload.WithObject("GlobalResiliencyMetadata", m_globalResiliencyMetadata.Jsonize());
453+
}
454+
447455
return payload;
448456
}
449457

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/**
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
#include <aws/connect/model/GlobalResiliencyMetadata.h>
7+
#include <aws/core/utils/json/JsonSerializer.h>
8+
9+
#include <utility>
10+
11+
using namespace Aws::Utils::Json;
12+
using namespace Aws::Utils;
13+
14+
namespace Aws {
15+
namespace Connect {
16+
namespace Model {
17+
18+
GlobalResiliencyMetadata::GlobalResiliencyMetadata(JsonView jsonValue) { *this = jsonValue; }
19+
20+
GlobalResiliencyMetadata& GlobalResiliencyMetadata::operator=(JsonView jsonValue) {
21+
if (jsonValue.ValueExists("ActiveRegion")) {
22+
m_activeRegion = jsonValue.GetString("ActiveRegion");
23+
m_activeRegionHasBeenSet = true;
24+
}
25+
if (jsonValue.ValueExists("OriginRegion")) {
26+
m_originRegion = jsonValue.GetString("OriginRegion");
27+
m_originRegionHasBeenSet = true;
28+
}
29+
if (jsonValue.ValueExists("TrafficDistributionGroupId")) {
30+
m_trafficDistributionGroupId = jsonValue.GetString("TrafficDistributionGroupId");
31+
m_trafficDistributionGroupIdHasBeenSet = true;
32+
}
33+
return *this;
34+
}
35+
36+
JsonValue GlobalResiliencyMetadata::Jsonize() const {
37+
JsonValue payload;
38+
39+
if (m_activeRegionHasBeenSet) {
40+
payload.WithString("ActiveRegion", m_activeRegion);
41+
}
42+
43+
if (m_originRegionHasBeenSet) {
44+
payload.WithString("OriginRegion", m_originRegion);
45+
}
46+
47+
if (m_trafficDistributionGroupIdHasBeenSet) {
48+
payload.WithString("TrafficDistributionGroupId", m_trafficDistributionGroupId);
49+
}
50+
51+
return payload;
52+
}
53+
54+
} // namespace Model
55+
} // namespace Connect
56+
} // namespace Aws

0 commit comments

Comments
 (0)