/* * 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 appconfigdata-2021-11-11.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; namespace Amazon.AppConfigData.Model { /// /// This is the response object from the GetLatestConfiguration operation. /// public partial class GetLatestConfigurationResponse : AmazonWebServiceResponse { private MemoryStream _configuration; private string _contentType; private string _nextPollConfigurationToken; private int? _nextPollIntervalInSeconds; private string _versionLabel; /// /// Gets and sets the property Configuration. /// /// The data of the configuration. This may be empty if the client already has the latest /// version of configuration. /// /// [AWSProperty(Sensitive=true)] public MemoryStream Configuration { get { return this._configuration; } set { this._configuration = value; } } // Check to see if Configuration property is set internal bool IsSetConfiguration() { return this._configuration != null; } /// /// Gets and sets the property ContentType. /// /// A standard MIME type describing the format of the configuration content. /// /// public string ContentType { get { return this._contentType; } set { this._contentType = value; } } // Check to see if ContentType property is set internal bool IsSetContentType() { return this._contentType != null; } /// /// Gets and sets the property NextPollConfigurationToken. /// /// The latest token describing the current state of the configuration session. This must /// be provided to the next call to GetLatestConfiguration. /// /// /// /// This token should only be used once. To support long poll use cases, the token is /// valid for up to 24 hours. If a GetLatestConfiguration call uses an expired /// token, the system returns BadRequestException. /// /// /// public string NextPollConfigurationToken { get { return this._nextPollConfigurationToken; } set { this._nextPollConfigurationToken = value; } } // Check to see if NextPollConfigurationToken property is set internal bool IsSetNextPollConfigurationToken() { return this._nextPollConfigurationToken != null; } /// /// Gets and sets the property NextPollIntervalInSeconds. /// /// The amount of time the client should wait before polling for configuration updates /// again. Use RequiredMinimumPollIntervalInSeconds to set the desired poll /// interval. /// /// public int NextPollIntervalInSeconds { get { return this._nextPollIntervalInSeconds.GetValueOrDefault(); } set { this._nextPollIntervalInSeconds = value; } } // Check to see if NextPollIntervalInSeconds property is set internal bool IsSetNextPollIntervalInSeconds() { return this._nextPollIntervalInSeconds.HasValue; } /// /// Gets and sets the property VersionLabel. /// /// The user-defined label for the AppConfig hosted configuration version. This attribute /// doesn't apply if the configuration is not from an AppConfig hosted configuration version. /// If the client already has the latest version of the configuration data, this value /// is empty. /// /// public string VersionLabel { get { return this._versionLabel; } set { this._versionLabel = value; } } // Check to see if VersionLabel property is set internal bool IsSetVersionLabel() { return this._versionLabel != null; } } }