public string CreateDistribution(string bucketName, bool enabled)
 {
     CloudFrontDistributionConfig config = new CloudFrontDistributionConfig();
     config.WithOrigin(bucketName)
         .WithEnabled(enabled);
     CreateDistributionRequest request = new CreateDistributionRequest();
     request.WithDistributionConfig(config);
     CreateDistributionResponse response = _client.CreateDistribution(request);
     return response.Distribution.DomainName;
 }
 /// <summary>
 /// Sets the DistributionConfig property for this request.
 /// </summary>
 /// <param name="distributionConfig">The value that DistributionConfig is set to</param>
 /// <returns>the request with the Id set</returns>
 public CreateDistributionRequest WithDistributionConfig(CloudFrontDistributionConfig distributionConfig)
 {
     this.dConfig = distributionConfig;
     return this;
 }
 public SetDistributionConfigRequest WithDistributionConfig(CloudFrontDistributionConfig distributionConfig)
 {
     base.dConfig = distributionConfig;
     return this;
 }
 public CreateDistributionRequest WithDistributionConfig(CloudFrontDistributionConfig distributionConfig)
 {
     base.dConfig = distributionConfig;
     return(this);
 }
 /// <summary>
 /// Sets the DistributionConfig property for this request.
 /// </summary>
 /// <param name="distributionConfig">The value that DistributionConfig is set to</param>
 /// <returns>the request with the Configuration set</returns>
 public SetDistributionConfigRequest WithDistributionConfig(CloudFrontDistributionConfig distributionConfig)
 {
     this.dConfig = distributionConfig;
     return(this);
 }