-
Notifications
You must be signed in to change notification settings - Fork 864
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2d3772
commit 1d348a4
Showing
7 changed files
with
262 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
sdk/src/Services/Kafka/Generated/Model/BrokerCountUpdateInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/* | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* A copy of the License is located at | ||
* | ||
* http://aws.amazon.com/apache2.0 | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
|
||
/* | ||
* Do not modify this file. This file is generated from the kafka-2018-11-14.normal.json service model. | ||
*/ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Xml.Serialization; | ||
using System.Text; | ||
using System.IO; | ||
using System.Net; | ||
|
||
using Amazon.Runtime; | ||
using Amazon.Runtime.Internal; | ||
|
||
#pragma warning disable CS0612,CS0618,CS1570 | ||
namespace Amazon.Kafka.Model | ||
{ | ||
/// <summary> | ||
/// Information regarding UpdateBrokerCount. | ||
/// </summary> | ||
public partial class BrokerCountUpdateInfo | ||
{ | ||
private List<double> _createdBrokerIds = AWSConfigs.InitializeCollections ? new List<double>() : null; | ||
private List<double> _deletedBrokerIds = AWSConfigs.InitializeCollections ? new List<double>() : null; | ||
|
||
/// <summary> | ||
/// Gets and sets the property CreatedBrokerIds. | ||
/// <para> | ||
/// Kafka Broker IDs of brokers being created. | ||
/// </para> | ||
/// </summary> | ||
public List<double> CreatedBrokerIds | ||
{ | ||
get { return this._createdBrokerIds; } | ||
set { this._createdBrokerIds = value; } | ||
} | ||
|
||
// Check to see if CreatedBrokerIds property is set | ||
internal bool IsSetCreatedBrokerIds() | ||
{ | ||
return this._createdBrokerIds != null && (this._createdBrokerIds.Count > 0 || !AWSConfigs.InitializeCollections); | ||
} | ||
|
||
/// <summary> | ||
/// Gets and sets the property DeletedBrokerIds. | ||
/// <para> | ||
/// Kafka Broker IDs of brokers being deleted. | ||
/// </para> | ||
/// </summary> | ||
public List<double> DeletedBrokerIds | ||
{ | ||
get { return this._deletedBrokerIds; } | ||
set { this._deletedBrokerIds = value; } | ||
} | ||
|
||
// Check to see if DeletedBrokerIds property is set | ||
internal bool IsSetDeletedBrokerIds() | ||
{ | ||
return this._deletedBrokerIds != null && (this._deletedBrokerIds.Count > 0 || !AWSConfigs.InitializeCollections); | ||
} | ||
|
||
} | ||
} |
97 changes: 97 additions & 0 deletions
97
...fka/Generated/Model/Internal/MarshallTransformations/BrokerCountUpdateInfoUnmarshaller.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
/* | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* A copy of the License is located at | ||
* | ||
* http://aws.amazon.com/apache2.0 | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
|
||
/* | ||
* Do not modify this file. This file is generated from the kafka-2018-11-14.normal.json service model. | ||
*/ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Globalization; | ||
using System.IO; | ||
using System.Net; | ||
using System.Text; | ||
using System.Xml.Serialization; | ||
|
||
using Amazon.Kafka.Model; | ||
using Amazon.Runtime; | ||
using Amazon.Runtime.Internal; | ||
using Amazon.Runtime.Internal.Transform; | ||
using Amazon.Runtime.Internal.Util; | ||
using ThirdParty.Json.LitJson; | ||
|
||
#pragma warning disable CS0612,CS0618 | ||
namespace Amazon.Kafka.Model.Internal.MarshallTransformations | ||
{ | ||
/// <summary> | ||
/// Response Unmarshaller for BrokerCountUpdateInfo Object | ||
/// </summary> | ||
public class BrokerCountUpdateInfoUnmarshaller : IUnmarshaller<BrokerCountUpdateInfo, XmlUnmarshallerContext>, IUnmarshaller<BrokerCountUpdateInfo, JsonUnmarshallerContext> | ||
{ | ||
/// <summary> | ||
/// Unmarshaller the response from the service to the response class. | ||
/// </summary> | ||
/// <param name="context"></param> | ||
/// <returns></returns> | ||
BrokerCountUpdateInfo IUnmarshaller<BrokerCountUpdateInfo, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
/// <summary> | ||
/// Unmarshaller the response from the service to the response class. | ||
/// </summary> | ||
/// <param name="context"></param> | ||
/// <returns>The unmarshalled object</returns> | ||
public BrokerCountUpdateInfo Unmarshall(JsonUnmarshallerContext context) | ||
{ | ||
BrokerCountUpdateInfo unmarshalledObject = new BrokerCountUpdateInfo(); | ||
context.Read(); | ||
if (context.CurrentTokenType == JsonToken.Null) | ||
return null; | ||
|
||
int targetDepth = context.CurrentDepth; | ||
while (context.ReadAtDepth(targetDepth)) | ||
{ | ||
if (context.TestExpression("createdBrokerIds", targetDepth)) | ||
{ | ||
var unmarshaller = new ListUnmarshaller<double, DoubleUnmarshaller>(DoubleUnmarshaller.Instance); | ||
unmarshalledObject.CreatedBrokerIds = unmarshaller.Unmarshall(context); | ||
continue; | ||
} | ||
if (context.TestExpression("deletedBrokerIds", targetDepth)) | ||
{ | ||
var unmarshaller = new ListUnmarshaller<double, DoubleUnmarshaller>(DoubleUnmarshaller.Instance); | ||
unmarshalledObject.DeletedBrokerIds = unmarshaller.Unmarshall(context); | ||
continue; | ||
} | ||
} | ||
return unmarshalledObject; | ||
} | ||
|
||
|
||
private static BrokerCountUpdateInfoUnmarshaller _instance = new BrokerCountUpdateInfoUnmarshaller(); | ||
|
||
/// <summary> | ||
/// Gets the singleton. | ||
/// </summary> | ||
public static BrokerCountUpdateInfoUnmarshaller Instance | ||
{ | ||
get | ||
{ | ||
return _instance; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters