class KubernetesConfigDataResource extends ConfigDataResource {

	private final KubernetesClientProperties properties;

	private final ConfigMapConfigProperties configMapProperties;

	private final SecretsConfigProperties secretsConfigProperties;

	private final boolean optional;

	private final Profiles profiles;

	private Log log;

	private Environment environment;

	public KubernetesConfigDataResource(KubernetesClientProperties properties,
			ConfigMapConfigProperties configMapProperties, SecretsConfigProperties secretsConfigProperties,
			boolean optional, Profiles profiles, Environment environment) {
		this.properties = properties;
		this.configMapProperties = configMapProperties;
		this.secretsConfigProperties = secretsConfigProperties;
		this.optional = optional;
		this.profiles = profiles;
		this.environment = environment;
	}

	public KubernetesClientProperties getProperties() {
		return this.properties;
	}

	/**
	 * ConfigMapConfigProperties that might be null.
	 */
	public ConfigMapConfigProperties getConfigMapProperties() {
		return configMapProperties;
	}

	/**
	 * SecretsConfigProperties that might be null.
	 */
	public SecretsConfigProperties getSecretsConfigProperties() {
		return secretsConfigProperties;
	}

	public boolean isOptional() {
		return this.optional;
	}

	public String getProfiles() {
		return StringUtils.collectionToCommaDelimitedString(getAcceptedProfiles());
	}

	List<String> getAcceptedProfiles() {
		return this.profiles.getAccepted();
	}

	public void setLog(Log log) {
		this.log = log;
	}

	public Log getLog() {
		return this.log;
	}

	public Environment getEnvironment() {
		return environment;
	}

	public void setEnvironment(Environment environment) {
		this.environment = environment;
	}

	@Override
	public boolean equals(Object o) {<FILL_FUNCTION_BODY>}

	@Override
	public int hashCode() {
		return Objects.hash(this.properties, this.optional, this.profiles, configMapProperties,
				secretsConfigProperties);
	}

	@Override
	public String toString() {
		return new ToStringCreator(this).append("optional", optional).append("profiles", profiles.getAccepted())
				.toString();

	}

}

		if (this == o) {
			return true;
		}
		if (o == null || getClass() != o.getClass()) {
			return false;
		}
		KubernetesConfigDataResource that = (KubernetesConfigDataResource) o;
		return Objects.equals(this.properties, that.properties) && Objects.equals(this.optional, that.optional)
				&& Objects.equals(this.profiles, that.profiles)
				&& Objects.equals(this.configMapProperties, that.configMapProperties)
				&& Objects.equals(this.secretsConfigProperties, that.secretsConfigProperties);
	
<methods>public void <init>() <variables>private final boolean optional