Skip to content

Commit 1733c38

Browse files
ashishdhingraphilasmar
authored andcommitted
Add public IsAddressesSet method for WAFv2 UpdateIPSetRequest to handle empty list.
1 parent 6dcbe45 commit 1733c38

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"emitIsSetProperties": {
3+
"UpdateIPSetRequest": [
4+
"Addresses"
5+
]
6+
}
7+
}

sdk/src/Services/WAFV2/Generated/Model/UpdateIPSetRequest.cs

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,32 @@ public List<string> Addresses
145145
set { this._addresses = value; }
146146
}
147147

148+
/// <summary>
149+
/// This property is set to true if the property <seealso cref="Addresses"/>
150+
/// is set; false otherwise.
151+
/// This property can be used to determine if the related property
152+
/// was returned by a service response or if the related property
153+
/// should be sent to the service during a service call.
154+
/// </summary>
155+
/// <returns>
156+
/// True if the related property was set or will be sent to a service; false otherwise.
157+
/// </returns>
158+
public bool IsAddressesSet
159+
{
160+
get
161+
{
162+
return Amazon.Util.Internal.InternalSDKUtils.GetIsSet(this._addresses);
163+
}
164+
set
165+
{
166+
Amazon.Util.Internal.InternalSDKUtils.SetIsSet(value, ref this._addresses);
167+
}
168+
}
169+
148170
// Check to see if Addresses property is set
149171
internal bool IsSetAddresses()
150172
{
151-
return this._addresses != null && this._addresses.Count > 0;
173+
return this.IsAddressesSet;
152174
}
153175

154176
/// <summary>

0 commit comments

Comments
 (0)